07.04.2011, 09:00
On Top:
OnPlayerText:
pawn Код:
new CensoredWords[1][] = {
"fuck"
};
pawn Код:
for(new i; i < sizeof(CensoredWords); i++)
{
if(strfind(text,CensoredWords[i],true) != -1)
{
// bla bla bla
new PlayerName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string,sizeof(string), "%s: Awesome Server", PlayerName);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
}