View Single Post
  #1  
Old 12-05-2004, 04:32 AM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Red face Making Server Flags

I want to make a script where when the player says "/eventpost TEXT" the text gets turned into a server flag like "server.bwpost=TEXT" and then the #s part of the code shown below in the playerenters and visible part display the text.

I had a good working way but I found out it needed server flags for everyone else to see it.

NPC Code:
// NPC made by ZicklePop
//#CLIENTSIDE
if (playerenters) {
showtext txt,x,y,verdana,nc,#s(server.bwpost);
changeimgcolors txt,1,1,1,1;
changeimgzoom txt,.5;
}
//#CLIENTSIDE
while (visible) {
showtext txt,x,y,verdana,nc,#s(server.bwpost);
changeimgcolors txt,1,1,1,1;
changeimgzoom txt,.5;
sleep 1;
}
//#CLIENTSIDE
if (playerchats) {
tokenize #c;
if (strequals(#t(0),/eventpost)) {
triggeraction 0,0,serverside,eventpost,/eventpost,#v(strtofloat(#s(server.bwpost));
}
}



Any help please?

Thanks as always, ZicklePop
__________________
Reply With Quote