15.01.2013, 07:00
Hello, im using this for my Forbidden words
Can someone show me how can i put SendAdminMessage, for that words, i tryed but fail...
Whole OnPlayerText Pub
Can someone show me how can i put SendAdminMessage, for that words, i tryed but fail...
Whole OnPlayerText Pub
Код:
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][pMuted] == 1) { SCM(playerid,Red,"{FFFFFF}[{F81414}CHFR{FFFFFF}!] Muted!"); return 0; } if(strval(text) == ContestAnswer && ContestAnswer != -1) { OnPlayerWinContest(playerid); } new BadWords[][] = { {"just for test"}, {"just for test"} } ; for(new i; i != sizeof(BadWords); ++i) { AntiSwear(text, BadWords[i]); } return 1; } stock AntiSwear(string[], BadWords[], use= '*') { new i; while((i = strfind(string, BadWords, true)) != -1) { for(new x = (i + strlen(BadWords)); i != x; ++i) { string[i] = use; } } return 1; }