Quote:
|
Originally Posted by osrs
You don't really need a server flag on your idea, a client flag is ok. Just use some server-side scripting to send the information to all players accounts. Also, you don't need to use '//#CLIENTSIDE' three times on the same script.
|
But what about players who log on after the message has been set? They won't see the message set.
NPC Code:
// NPC fixed by Slash
if (playerchats) {
if (startswith(/eventpost,#c)) {
setstring server.bwpost,#e(11,-1,#c);
}
}
//#CLIENTSIDE
if (created || playerenters) {
timeout = 1;
display();
}
if (timeout) {
if (playerscount > 0) {
timeout = 1;
}
display();
}
function display() {
showtext 0,x,y,verdana,c,#s(server.bwpost);
changeimgcolors 0,1,1,1,1;
changeimgzoom 0,.5;
}