Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerText(playerid, text[])
- {
- new string[200];
- if(PlayerInfo[playerid][Admin] <= 5)
- {
- format(string,sizeof(string),"[{FFFF00}»» %s{FFFFFF}] %s : %s .««",PlayerInfo[playerid][Patente],nome(playerid),text);
- }else if(PlayerInfo[playerid][Admin] == 5 && !strcmp(nome(playerid),"Brunno_Vinicius"))
- {
- format(string,sizeof(string),"[{80FF80}»» %s{FFFFFF}] %s : %s .««",PlayerInfo[playerid][Patente],nome(playerid),text);
- }
- if(PlayerInfo[playerid][Logado] == 0) return SendClientMessage(playerid,-1,"[ERRO]: Você não está logado !");
- static BadWords[][] =
- {
- " fdm "," fdp "," viado "," caralho "," porra "," buceta "," xana "," chana "," capeta "," inferno "," diabo ",
- " penis "," pinto "," f.d.p "," f.dp "," fd.p "," f_d_p "," cu "," anus "," filho da puta "," desgraça "," biscate ",
- " xota "," xoxota "," xxt "," x.x.t "," /q "," rola "
- };
- for(new Z; Z < sizeof(BadWords); Z++)
- {
- if(strfind(text, BadWords[Z], true) != -1)
- {
- strdel(text,0,200);
- SendClientMessage(playerid,Vermelho,"[ERRO]: Não diga palavrões !");
- return false;
- }
- }
- SendClientMessageToAll(-1,string);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment