[help]Execute some code after typing in chat

Posts 1–5 of 5 · Page 1 of 1
[help]Execute some code after typing in chat
Hello. First sorry for lame english.

I want to do something. When I type in chat some string I want to execute some code.

For example I type in chat "sniper" and get a sniper rifle. It is possible?
Maby
Code:
for(;;)
{
if(self.chat == "!sniper")
{
//sniper code
}
wait(0,05);
}
i really don't know :S
No, i got infinity loop. D:
Anyone can help me with this?
You can't do this through a mod AFAIK. You have to use a server plugin like the ones used in COD4 and stuff..
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us