09.04.2014, 04:13
Looking from your OnRconLoginAttempt code,
You have to be an Admin Level 3 or Higher first to login as RCON admin, otherwise you will be banned from the server.
So make yourself as level 3 or higher admin first by modifying your User Database level
Or just remove the code from line (But it's not suggested as some player who is not Admin (in the gamemode admin system) will be able to login with rcon password if get hacked):
I couldn't find your gamemode so i don't know how its admin structure, so sorry if it there will be a problem because of the code change (above) Also this is not scripting discussion or request section.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new pip[16];
////foreach(Player,i)
for(new i; i<MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
if(PlayerInfo[i][pAdmin] < 3) Ban(i);
}
}
So make yourself as level 3 or higher admin first by modifying your User Database level
Or just remove the code from line (But it's not suggested as some player who is not Admin (in the gamemode admin system) will be able to login with rcon password if get hacked):
pawn Код:
if(PlayerInfo[i][pAdmin] < 3) Ban(i);