09.01.2013, 12:14
Hello , i need help... im doing forbidden words on onplayertext, is working good, but how can i do that that word is sending to admins, SendAdminMessage
example , [!]Name_Surname: Fuck you // sending to admins, and in default chat is fuck you is **** ***
My public
example , [!]Name_Surname: Fuck you // sending to admins, and in default chat is fuck you is **** ***
My public
Код:
public OnPlayerText(playerid, text[]) { if(PlayerInfo[playerid][pMuted] == 1) { SCM(playerid,Crvena,"{FFFFFF}[{F81414}CHFR{FFFFFF}!] Utisani ste!"); return 0; } new LoseRijeci[][] = { {"1"}, {"2"}, {"3"}, {"4"}, {"5"}, {"6"}, {"7"}, {"8"}, {"9"}, {"mater"}, {"majka"}, {"keva"}, {"mama"}, {"tata"}, {"bog"}, {"isus"}, {"krist"}, {"jebo"}, {"jebote"}, {"cruel"}, {"gaming"}, {"cruelgaming"}, {"cg"}, {"smrad"}, {"kreten"}, {"debil"}, {"degen"}, {"majmun"}, {"pičko"}, {"picko"}, {"cigane"}, {"cigan"}, {"pička"}, {"server"}, {"picka"}, {"govno"}, {"roleplay"}, {"rp"}, {"srbin"}, {"hrvat"}, {"bosanac"}, {"crnogorac"}, {"musliman"}, {"cetnik"}, {"fasist"}, {"cedo"}, {"balija"}, {"partizan"}, {"grobar"}, {"delija"}, {"cross"}, {"city"}, {"crosscity"}, {"cc"}, {"express"}, {"exstasy"}, {"united"}, {"yunited"}, {"gf"}, {"usran"}, {"konju"}, {"underground"}, {"evolution"}, {"ue"}, {"faction"}, {"game"}, {"fg"}, {"salvadore"} } ; for(new i; i != sizeof(LoseRijeci); ++i) { AntiPsovka(text, LoseRijeci[i]); } return 1; } stock AntiPsovka(string[], LoseRijeci[], zamjeni = '*') { new i; while((i = strfind(string, LoseRijeci, true)) != -1) { for(new x = (i + strlen(LoseRijeci)); i != x; ++i) { string[i] = zamjeni; } } return 1; }