31.10.2014, 12:04
Simply add a new line saying if the player is not in the faction. Add this after you check that the player typed /openb and /closeb, example:
pawn Код:
if(strcmp(cmd // ......
if(PlayerInfo[playerid][pFaction] != X) /* != means not equal to, and the X is where you put your faction number */ return /* by returning a value here it stops the code from going further */ SendClientMessage(playerid // .....