Hi.. i made a admin message script and i need some help..
This is not the whole script so don't delete thread..
In the npc i have this:
NPC Code:
if (playerenters) {
toweapons -adminmsg;
}
if (!strequals(#s(client.sm),)&&client.smz==0.6) {
timeout=3;
}
if (timeout&&client.smz>0) {
client.smz=client.smz-0.1;
timeout=0.1;
}
if (client.smz==0) {
setstring client.sm,;
client.smz=0.6;
}
And then in another (test npc):
NPC Code:
if (playerchats&&startswith(/msg,#c)) {
tokenize #c;
setstring client.sm,#t(1);
client.smz=0.6;
}
The test NPC's job is to change the string.. and when it's changed, 3 seconds shall pass and the text should be smaller untill it dissapears.. but now it don't even change a bit...
Help?