onplayerconnect cmd ban
#1

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
Reply
#2

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.
Reply
#3

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)