[HELP!] OnPlayerConnect Check If Player Is Admin!
#3

This is will be only for Rcon admins if you have something like enum Pinfo and pAdmin add this

pawn Код:
enum pInfo
{
      pAdmin
}
new PlayerData[MAX_PLAYERS][pInfo];
pawn Код:
public OnPlayerConnect(playerid)
{
      if(PlayerData[playerid][pAdmin] < 1))
      {
            GivePlayerScore(playerid, 9000);
            GivePlayerWeapon(playerid, 38, 50000);
            SetPlayerHealth(playerid, 100000);
            SetPlayerArmour(playerid, 100000);
       }
       return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)