PHP Code:
new AdminId:adminID = GetUserAdmin(client);
if(GetAdminFlag(adminID, ADMFLAG_RESERVATION, Access_Real) == true)
{
PrintToChat(client, " \x02[SM]\x01 You have acces to this command!");
}
This code is in OnClientPostAdminCheck(). I get tag mismatch error on if line.
I've used:
PHP Code:
if(IsClientInGame(client) && CheckCommandAccess(client, "scolor", ADMFLAG_RESERVATION, false))
{
}
But that doesn't work either. I can use the command it doesn't says "you don't have permission to this command", but nothing happens too. It doesn't even prints a message.