if, or

if (player:Team() ~= TEAM_HEADOFSTATE) or (!player:IsAdmin()) then
exorp.player.notify(player, “You can not call this command.”, 1);
return false

So that should make it if the player is not the mayor (headofstate) or the player is not an admin that they can’t call that command.
I see the problem there, to call the command you need to be an administrator asswell.
How can I make it so the player can call the command when he is the mayor (headofstate) but isn’t an admin.

[lua]if (player:Team() ~= TEAM_HEADOFSTATE) and (!player:IsAdmin()) then
exorp.player.notify(player, “You can not call this command.”, 1);
return false[/lua]

If the player is neither a mayor nor an admin, send the notification. You can do anything you want with the right combination of “not”, “and”, and “or”. If “or” doesn’t work, try “and”. :v:

Yup, and did work indeed. Thanks alot dude :slight_smile: