Posts: 186
Threads: 55
Joined: Mar 2008
Reputation:
0
some people come to my server and crash my mode how i can protect the mode from the crash??
somtimes they do the command:
/stats 11111111111111111111
very much times and the mode down
sorry for the bad English
someone help pliz
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Limit the /stats command then.
If you don't know how, show us the command
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Maybe the returnid function isn't working correctly?
Posts: 2,593
Threads: 34
Joined: Dec 2007
Quote:
Originally Posted by The_Davil
Quote:
Originally Posted by JeNkStAX
Put this at the top of OnPlayerCommandText, This way if they try to type a real long command then it makes them think the command is unknown
pawn Код:
if(strlen(cmdtext) >= max) // Replace max with the maximum amount of chars you want the player to be able to type { return SendClientMessage(playerid, color, "SERVER: Unknown command"); // Replace color with white }
|
i try it's didn't work
|
It must work and it works perfectly