Locker Help
#1

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

Код:
	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;
	}
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
Reply


Messages In This Thread
Locker Help - by TheMafien - 29.03.2016, 20:51
Re: Locker Help - by Mencent - 29.03.2016, 20:55
Re: Locker Help - by TheMafien - 29.03.2016, 21:06
Re: Locker Help - by Mencent - 29.03.2016, 21:08
Re: Locker Help - by TheMafien - 29.03.2016, 21:26
Re: Locker Help - by OmegaKiller72 - 29.03.2016, 21:33
Re: Locker Help - by TheMafien - 29.03.2016, 21:52
Re: Locker Help - by Golden96 - 29.03.2016, 21:55
Re: Locker Help - by TheMafien - 29.03.2016, 22:07
Re: Locker Help - by Mencent - 30.03.2016, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)