[Ajuda] ajuda com sistema de anti-divulguer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajuda com sistema de anti-divulguer (
/showthread.php?tid=477212)
ajuda com sistema de anti-divulguer -
Covhyer - 22.11.2013
Entгo estou precisando de ajuda, com meu anti divulguer, por exemplo quando eu vou desbnir alguem aparece para os admin que estou divulgando,e ele so aparece pros admins quando ele ta usando algum cmd por exemplo /sms :777 /g :7777 e queria que deixasse para aparecer para os admin mesmo nao usando cmd.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(SistemaAntiDV); i++)
{
if(strfind(cmdtext, SistemaAntiDV[i], true) != -1)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Atenзгo o Jogador %s[ID %d] estб divulgando o ip com o comando %s", giveplayer,playerid,cmdtext);
ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
}
}
}
Re: ajuda com sistema de anti-divulguer -
PT - 22.11.2013
pra isso tem de colocar no OnPlayerText.
Respuesta: ajuda com sistema de anti-divulguer -
Covhyer - 22.11.2013
Me ajuda jogar para essa public ?
Re: ajuda com sistema de anti-divulguer -
Don_Speed - 22.11.2013
Em OnPlayerText
PHP код:
for(new i = 0; i < sizeof(SistemaAntiDV); i++)
{
if(strfind(text, SistemaAntiDV[i], true) != -1)
{
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Atenзгo o Jogador %s[ID %d] estб divulgando o ip com o comando %s", giveplayer,playerid,text);
ABroadCast(COLOR_LIGHTRED,string,1);
return 1;
}
}
Respuesta: ajuda com sistema de anti-divulguer -
Covhyer - 22.11.2013
Funfou cara, so que o problema que quando ele divulga aparece pra todo mundo do sv!
Re: ajuda com sistema de anti-divulguer -
Ley - 23.11.2013
Utilize: