30.01.2010, 23:05
Not exists anyone errors in this code.
Look how would in OnPlayerText:
pawn Код:
if(!strcmp("fucker",text,true) || !strcmp("gay",text,true) || !strcmp("fucku",text,true))
{
format(string, sizeof(string),"%s(%d): I feeell so good! I h8 badwords!", pInfo[playerid][name],playerid);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp("fucker",text,true) || !strcmp("gay",text,true) || !strcmp("fucku",text,true))
{
new string[128];
format(string, sizeof(string),"%s(%d): I feeell so good! I h8 badwords!", pInfo[playerid][name],playerid);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
return 1;
}