11.01.2013, 02:41
Hello, I want that when a player types a text like for example "pin pon". He or she gets banned. How do I do it? Thank you.
Strfind
public OnPlayerText(playerid, text[])
{
if(strfind(text, "pin pon", true) != -1) return Ban(playerid);
return 1;
}
if( strcmp(text, "I suck", true ) == 0 )
{
// Bans the player who said 'I suck' and includes a reason ("Request")
BanEx( playerid, "No hi's !" );
return 1;
}