01.04.2014, 20:19
Well ... how do you store the admin level? Mine is stored like
and you should just change
with your "variable" ... in my case being
and add
meaning "If pLevel is higher than 0"
and the code would look like
pawn Код:
PlayerInfo[playerid][pLevel]
pawn Код:
if(IsPlayerAdmin(playerid))
pawn Код:
PlayerInfo[playerid][pLevel]
pawn Код:
> 0
and the code would look like
pawn Код:
if(!strcmp(cmdtext,"/og",true))
{
if(PlayerInfo[playerid][pLevel] > 0){
new string[50];
new movetime = MoveObject(gate, 2101.30786, 15.75350, -5.72150, 2.00);
SendClientMessage(playerid, 0xDEEE20FF, "gate opening.");
}
else SendClientMessage(playerid, 0xDEEE20FF, "You are not an admin to move the gate.");
}