IsACopCar - Kicks you off if duty == 0
#6

Code:
		if (IsACopCar(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
			else {
                if(PlayerInfo[playerid][pMedicDuty] == 0)
                {
                   SendClientMessage(playerid, COLOR_GRAD3, "You are not on-duty as a medic!");
				   new Float:cx, Float:cy, Float:cz;
				   GetPlayerPos(playerid, cx, cy, cz);
				   SetPlayerPos(playerid, cx, cy, cz);
                   return 1;
                }
				//WantedPoints[playerid]+=2;
				//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx, cy, cz);
			}
		}
Reply


Messages In This Thread
IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 19:57
Re: IsACopCar - Kicks you off if duty == 0 - by Torran - 30.01.2010, 20:03
Re: IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 20:10
Re: IsACopCar - Kicks you off if duty == 0 - by Torran - 30.01.2010, 20:16
Re: IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 20:22
Re: IsACopCar - Kicks you off if duty == 0 - by NewYorkRP - 30.01.2010, 20:33
Re: IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 21:18
Re: IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 21:23
Re: IsACopCar - Kicks you off if duty == 0 - by matrix_smq - 30.01.2010, 21:52
Re: IsACopCar - Kicks you off if duty == 0 - by Chivava - 30.01.2010, 21:58

Forum Jump:


Users browsing this thread: 2 Guest(s)