27.12.2012, 06:44
Alright here i have a command which i also want to be used by a new faction i added but how i did didnt work can you guys provide some help?Here is the code.
Thanks in advance.
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)) 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.");