08.11.2011, 04:09
Ola eu sou banido do meu sv quando tento logar na rcon mesmo colocando a senha certa queria saber como tiro isso do meu gm й para eu poder usar certas fs Obrigado desde ja!!
Poste sua public: OnRconLoginAttempt
_ @Edit tenho que sair agora, depois alguem te ajuda ai, ou eu mesmo. ![]() |
public OnRconLoginAttempt(ip[], password[], success)
{
Ban(playerid);
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success) //If the password was incorrect
{
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.
}
}
}
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
// printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
static pip[16];
pip[0] = EOS;
for(new i, x = GetMaxPlayers(); i != x; ++i)
{
if(IsPlayerConnected(i))
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
BanEx(i, "Bad Password");
}
}
}
}
return 1;
}