if (player:Team() ~= TEAM_HEADOFSTATE) or (!player:IsAdmin()) then
exorp.player.notify(player, “You can not call this command.”, 1);
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.