SA-MP Forums Archive
onplayerconnect cmd ban - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: onplayerconnect cmd ban (/showthread.php?tid=558629)



onplayerconnect cmd ban - sirvanec - 18.01.2015

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


Re: onplayerconnect cmd ban - CalvinC - 18.01.2015

pawn Код:
if(text[0] == '!') Ban(playerid);
I don't know how you would do this under OnPlayerConnect, but you can adjust it to your needs.


Re: onplayerconnect cmd ban - Clad - 18.01.2015

Are you sure that you will ban any player that says "!" ? And I don't see how you will use it.


Re: onplayerconnect cmd ban - RedFusion - 18.01.2015

You might want to warn players about this so you don't ban your whole playerbase


Re: onplayerconnect cmd ban - sirvanec - 18.01.2015

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..