[Help] Forbidden words
#1

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

Код:
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;
}
Reply
#2

pawn Код:
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)
{
SendAdminMessage(~1, text);
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;
}
The ~1 is color white, change it or remove it.
Reply
#3

not working
Reply
#4

For the love of god, use English variable names in your scripts! How am I supposed to know what the hell "LoseRijeci[]" means?
Reply
#5

What's wrong?
Reply
#6

******, balkan gamers having problems with advertise servers, that is for FreeRoam server not for RolePlay, and its not english leangue on chat so we need that filters :P

@Vince sry i forgot "LoseRijeci[]" means BadWords
Reply
#7

Easy one nice Job
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)