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