21.04.2010, 19:50
Ok, I want this to read if their account has DrugLord permissions (Druglord: 1) here's what i have
EDIT: It keeps saying that they don't have permissions, Though their account is set to 1
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;
}