#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
#2

What's your problem Exactly?
Till what of their account is set to 1?
Change your title...
Reply
#3

I do need help, Why would i change the title.

For some reason it won't read their profile and see if their able to spawn as a DrugLord
Reply
#4

Quote:
Originally Posted by ScottCFR
I do need help, Why would i change the title.
a) Use a proper subject
Something like '------------>HELP PLZ FAST NOW HELP!!!!!!!!!!!<----------' is not very descriptive and very annoying.
Make a proper subject with a short description, such as 'Gates won't open' or 'Game crashes instantly'

@ READ THIS BEFORE POSTING

So I'm not going to help you and I'm going offline now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)