[Ajuda] 3 Coisas - 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] 3 Coisas (
/showthread.php?tid=537523)
3 Coisas -
SatanMessenger - 16.09.2014
Tenho um fs de anti-proxy e queria que mostrasse o nick do cara que foi kick por usar pra todo mundo й mandar mensagem para ele que ele tentou usar proxy no serve e foi kick, eu tentei so que aparece quando alguem loga normalmente й nem e kickado
CODE:
Код:
public OnLookupComplete(playerid)
{
if(IsProxyUser(playerid))
{
Kick(playerid);
}
}
й tambйm mostrar para todos e para o player que ele tentou logar na rcon e foi ban
Код:
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
Ban(i); //They are now banned.
Re: 3 Coisas -
zRan - 16.09.2014
1 - Provavelmente deve haver algo errado com seu fs.
2 -
Код:
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
new otario[32];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
GetPlayerName(i, otario, sizeof(otario));
Ban(i); //They are now banned.
}
}
new str[128];
format(str, sizeof(str), "Esse otбrio tentou logar na RCON e errou a senha: %s. Se fodeu.", otario);
SendClientMessageToAll(0xFFFFFFFF, str);
3 -
Re: 3 Coisas -
SatanMessenger - 16.09.2014
Era pra ser 2 AEHAUEHAUE
Re: 3 Coisas -
zRan - 16.09.2014
O cуdigo postado acima funcionou?
Re: 3 Coisas -
SatanMessenger - 16.09.2014
Funcionou valeu xd
+Rep
Re: 3 Coisas -
SatanMessenger - 16.09.2014
O anti-proxy funciona normalmente й porque a metade dele й uma include