20.01.2014, 14:33
Well, first make the code neater. I don't directly see any issues with the code, but this may solve the issue or confusion you have:
ALSO: Check to make SURE that when you're testing this, the Admin level IS 3+ and/or the Rank level IS 4+
pawn Код:
if(pInfo[playerid][pAdmin] < 3 || pInfo[playerid][pRank] < 4 )//if the player is less than an Admin 3 AND/OR if the player is a rank of less than 4.
{
SendClientMessage(playerid,COLOR_ADMWHITE, "SERVER: Unknown command.");//Wont work for them.
return 1;
}
else//Everyone else can...
{
//What you want Admin 3+ and/or Rank 4+ to be able to do with this command.
return 1;
}
ALSO: Check to make SURE that when you're testing this, the Admin level IS 3+ and/or the Rank level IS 4+