View Single Post
  #3  
Old 12-05-2004, 06:30 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
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;
}

Reply With Quote