I have a script for my spar event on my server and I scripted it to where it shows "block.png" and they dont disappear until the script says "start", and I tried making a thing where the events team can say "/reset" and the blocks would show up again. It works cliensided, which is of course bad, since I want everyone to see it, and I tried making it serversided but it just isnt a nice script =]
Here it is:
function onPlayerchats() {
if (player.guild == "Events Team") {
if (player.chat.starts("/start")) {
setcharprop #c,5;
sleep(1);
setcharprop #c,4;
sleep(1);
setcharprop #c,3;
sleep(1);
setcharprop #c,2;
sleep(1);
setcharprop #c,1;
sleep(1)
setcharprop #c,Begin Sparring!;
hide;
sleep(1);
setcharprop #c,;
}
}
}
function onActionServerSide() {
if (player.guild == "Events Team") {
if (player.chat.starts("/reset")) {
sleep(0.1);
show;
}
}
}
The end is the problem, It just doesnt even work serversided. Someone help me fix it please. I would be most generous.