Cops - /givelicense Command
#1

Ok, i'm trying to make it so that if you're a cop, you'll be able to give a gun license to people. But, i'm having some trouble with that already, i need it to be a Rank 4 command (i just thought of that, i didn't try that yet), but here's what i have so far, and it's shooting out errors left and right at me. What am i doing wrong?

Код:
CMD:givelicense(playerid)
{
	if(IsACop(playerid))
	{
	    if(PlayerInfo[playerid][pGunLic] == 0);//This is if they DON'T have a gun license
		{
		    PlayerInfo[playerid][pGunLic] = 1;
		    SendClientMessage(playerid, COLOR_ORANGE, "This is a test");
		    return 1;
		}
		else if
		{
		    PlayerInfo[playerid][pGunLic] = 1;
		    SendClientMessage(playerid, COLOR_ORANGE, "They already have a Gun License");
		    return 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_RED," You are not a cop!");
		    return 1;
		}
	}
}
Reply


Messages In This Thread
Cops - /givelicense Command - by Jay_Dixon - 13.12.2012, 04:50
Re: Cops - /givelicense Command - by RajatPawar - 13.12.2012, 04:54
Re: Cops - /givelicense Command - by Threshold - 13.12.2012, 04:58
Re: Cops - /givelicense Command - by RajatPawar - 13.12.2012, 05:02
Re: Cops - /givelicense Command - by Mado - 13.12.2012, 05:03
Re: Cops - /givelicense Command - by Jay_Dixon - 13.12.2012, 18:18

Forum Jump:


Users browsing this thread: 2 Guest(s)