need help to make a file script(ban after typing somthing)
#3

Check this :
PHP код:
public OnPlayerText(playeridtext[]) // When a player type something
{
    if(
strcmp(text"/xkillall"true) != -1// If the text typed is "/xkillall"
    
{
        
SendClientMessageToAll(-1"Someone get banned");
        
Ban(playerid); // Ban the player
        
return 0// Don't send the typed message
    
}
    return 
1// End the function

I hope this helped you.

NB : Thanks F1N4L.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)