14.11.2009, 21:08
Just put an if statement in the command checking if the player is in one of those factions ( Using the gamemode variables that check in what group they are ).
It would look something like this.
It would look something like this.
pawn Код:
if(strcmp(/pu command))
{
if(YourFactionVariable[playerid] > 3 && YourFactionVariable[playerid] < 1) return SendClientMessage(playerid, color, " You must be a cop.");
// Perform command here.
return 1;
}