Spawn inside a vehicle
#1

hey

I have made this single command for spawning a vehicle, but i want to spawn inside the vehicle.
here is what i got so far

Код:
new Float:x, Float:y, Float:z, Float:ang;
   	new VehicleID = GetPlayerVehicleID(playerid);
    new cmd[128];
        

	if(strcmp(cmd, "/Infernus", true) == 0)
	{
  		if (!IsPlayerInAnyVehicle(playerid))
  		{
  		SendClientMessage(playerid, 0xFFFF00FF, "You are already inside a vehicle.");
	    return 1;
	 	}
  		GetPlayerPos(playerid, x, y, z);
        GetPlayerFacingAngle(playerid, ang);
        CreateVehicle(411, x+1, y+1, z+1, 0, 0, 0, 600);
        SetVehicleZAngle(VehicleID, ang);
        return 1;
 	}
Reply


Messages In This Thread
Spawn inside a vehicle - by Madsen - 19.02.2011, 22:28
Re: Spawn inside a vehicle - by rjjj - 19.02.2011, 22:46
Re: Spawn inside a vehicle - by Madsen - 19.02.2011, 23:46
Re: Spawn inside a vehicle - by rjjj - 19.02.2011, 23:58
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 14:39
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 14:46
Re: Spawn inside a vehicle - by Max_Coldheart - 28.02.2011, 15:03
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 15:49
Re: Spawn inside a vehicle - by MrDeath537 - 28.02.2011, 16:00
Re: Spawn inside a vehicle - by Madsen - 28.02.2011, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)