View Full Version : onplayerconnect cmd ban

18/01/2015, 10:45 AM
Hi guys i need a code that bans the player if it write ! Or !text (something instead text) not like this blabla! And this code going to be in the onplayerconnect function

18/01/2015, 10:52 AM
if(text[0] == '!') Ban(playerid);
I don't know how you would do this under OnPlayerConnect, but you can adjust it to your needs.

18/01/2015, 11:20 AM
Are you sure that you will ban any player that says "!" ? And I don't see how you will use it.

18/01/2015, 11:41 AM
You might want to warn players about this so you don't ban your whole playerbase

18/01/2015, 07:44 PM
No cheaters they use some commands like !attack and it restarting my server. I dont know how but i will block this commands. Like !%s
If i put this in onplayertext line it doesn't work because some bot spawner programs can write something without to need spawn i mean when they connect to the server..