13.06.2010, 15:17
I want to find out how to make a player's job admin (Job[playerid] = 1337 is the var for admin) auto when they /rcon login with right pass
OnRconLoginAttempt(something) { if(succes == true) { Job[playerid] = 1337; } return 1; }
forward RCON();
SetTimer("RCON",2000,1);
public RCON()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerAdmin(i)) {
Job[i] = 1337;
}
}
}
Originally Posted by Jakku
If you just want to set "Job" - variable to 1337 for all RCON Admins, why not just do this?
pawn Код:
|