27.12.2012, 06:58
Quote:
Yea this worked also if want another faction too there then sud i use the same?
|
NOTE : change isfact by ur faction thing
pawn Код:
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(!IsACop(playerid) && !IsANG(playerid) && !IsFact(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't use this command unless you're a LEO!"); // Here i tried to add but didnt work
//if(!PlayerInfo[playerid][pFacDuty]) return SendClientMessage(playerid, COLOR_GREY, "You are not on duty.");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You can't use this command while being in a vehicle.");