Detect
#1

how can i make from this pawn code
this is the pawn code that if a player says kanker it wil be banned
like this Radi:kanker
but i want to make it that it wil also ban if the word kanker is some where else like
Radi: You are kanker


[pawn]
if(strcmp(text, "kanker", true) == 0)
{
new playername[MAX_PLAYER_NAME];
new string[256];
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "=>|[Anti-Flame]|<= Banned: %s for Flaming with a disease ", playername);
SendClientMessageToAll(COLOR_RED, string);
format(string, sizeof(string), "=>|[Anti-Flame]|<= You Got Banned For 2 Days ");
SendClientMessage(COLOR_RED, string);
format(string, sizeof(string), "=>|[Anti-Flame]|<= Make a unban appeal on the forum ");
SendClientMessage(COLOR_RED, string);
Ban(playerid);
}
return 0;
}
[/pawn
Reply


Messages In This Thread
Detect - by radi - 19.07.2009, 10:26
Re: Detect - by Weirdosport - 19.07.2009, 10:29
Re: Detect - by radi - 19.07.2009, 11:12
Re: Detect - by Weirdosport - 19.07.2009, 11:14
Re: Detect - by radi - 19.07.2009, 11:44
Re: Detect - by Pawno_Master - 19.07.2009, 11:57

Forum Jump:


Users browsing this thread: 5 Guest(s)