29.03.2016, 20:51
Ok, so Im new to pawno and decided to try to edit The Miami roleplay script but I have a problem, if I am a cop and I type /apdlocker "Police Locker" It says I am not in the faction. The command calls for IsACop but I've seen some variables such as pMember.
The code is as follows
I don't want any comments such as "WTF are you using that script" "Make your own" etc, In just want help for this. Thanks.
Script I am Using - http://******************/post/19340...rida_Roleplay_[Thug_Life_Edit]/nicholasramdhan/gamemodes/rp
The code is as follows
Код:
if(strcmp(cmdtext, "/apdlocker", true) == 0) // LSPD Locker { if(IsPlayerConnected(playerid)) { if(IsACop(playerid)) { if(IsPlayerConnected(playerid)//Would ask for a cord but I changed it to see if that was the problem) { DisplayDialogForPlayer(playerid, 10); } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not in your locker room !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a MPD officer!"); return 1; } } return 1; }
Script I am Using - http://******************/post/19340...rida_Roleplay_[Thug_Life_Edit]/nicholasramdhan/gamemodes/rp