#1

Ok, I want this to read if their account has DrugLord permissions (Druglord: 1) here's what i have

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(AccountInfo[playerid][Logged] == 1)
    {
        if(GetPlayerSkin(playerid) == 123)
        {
          if(AccountInfo[playerid][DrugLord] == 1)
          {
            return 1;
            }
            else
            {
              GameTextForPlayer(playerid, "You don't have permissions for this class!", 5000, 5);
              return 0;
            }
        }
    }
    else
    {
      SendClientMessage(playerid, RED, "Error: You must register or login before spawn!");
      SendClientMessage(playerid, RED, "/login [password] *** /register [password]");
      return 0;
    }
    return 1;
     
}
EDIT: It keeps saying that they don't have permissions, Though their account is set to 1
Reply


Messages In This Thread
Help - by ScottCFR - 21.04.2010, 19:50
Re: Help - by CAR - 21.04.2010, 19:53
Re: Help - by ScottCFR - 21.04.2010, 20:00
Re: Help - by CAR - 21.04.2010, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)