Faction auto's help
#8

Wat je zou kunnen doen is het define van de faction vehicle zoiets als dit


Code:
stock IsACopCar(carid)
{
	for(new v = 0; v < sizeof(LPDVehicles); v++) {
	    if(carid == LPDVehicles[v]) return 1;
	}
	return 0;
}
Code:
		else if(IsACopCar(vehicleid))
		{
		    if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
			{
			}
		    else
			{
			    RemovePlayerFromVehicle(playerid);
			    new Float:slx, Float:sly, Float:slz;
				GetPlayerPos(playerid, slx, sly, slz);
				SetPlayerPosEx(playerid, slx, sly, slz);
			    NOPPCheck(playerid);
			    SendClientMessageEx(playerid, COLOR_GRAD2, "You are not in the LPD!");
			}
		}
Daarna ga je vervolgends de plek kiezen waar jij je Politie auto wilt hebben

LPDVehicles[0] = AddStaticVehicleEx(596, PosX, PosY, PosZ, Rotation, Kleur[1], Kleur[2], VEHICLE_RESPAWN); // Police Car (LPD)

Zo iets probeer dat maar is.
Reply


Messages In This Thread
Faction auto's help - by lulo356 - 08.05.2014, 19:00
Re: Faction auto's help - by Infinity - 08.05.2014, 20:14
Re: Faction auto's help - by lulo356 - 08.05.2014, 20:35
Re: Faction auto's help - by mamorunl - 08.05.2014, 21:00
Re: Faction auto's help - by lulo356 - 08.05.2014, 21:56
Re: Faction auto's help - by ikbenremco - 09.05.2014, 20:59
Re: Faction auto's help - by lulo356 - 11.05.2014, 01:31
Re: Faction auto's help - by hwakinsRP - 06.07.2014, 17:10

Forum Jump:


Users browsing this thread: 3 Guest(s)