19.07.2009, 10:26
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
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