13.05.2016, 16:45
(
Последний раз редактировалось Dayrion; 13.05.2016 в 17:16.
)
Check this :
I hope this helped you.
NB : Thanks F1N4L.
PHP код:
public OnPlayerText(playerid, text[]) // 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
}
NB : Thanks F1N4L.