fly car
#1

Hello guys, i tried to create a command. when you are in a vehicle and use the cocmmand, the car to jump.

I tried this but I did not succeed

Код:
new Float:Pos[4], Float:zPos[3];
	            	new vehicleid = GetPlayerVehicleID(playerid);
	            	GetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]);
	            	SetVehiclePos(vehicleid, Pos[0], Pos[1], Pos[2]+20);
	            	GetVehicleZAngle(vehicleid, Pos[3]);
	            	new tt = random(2);
	            	if(tt== 0) SetVehicleZAngle(vehicleid, Pos[3]+10),SCM(playerid, -1, "test 1");
	            	else SetVehicleZAngle(vehicleid, Pos[3]+5),SCM(playerid, -1, "test 2");
	            	GetVehicleVelocity(vehicleid, zPos[0], zPos[1], zPos[2]);
	            	SetVehicleVelocity(vehicleid, zPos[0] + 0.1, zPos[1] + 0.1 , zPos[2] + 0.1);
	            	SetCameraBehindPlayer(playerid);
Any idea?
Reply


Messages In This Thread
for car - by None1337 - 09.01.2018, 12:29
Re: fly car - by None1337 - 10.01.2018, 12:17
Re: fly car - by denNorske - 10.01.2018, 12:36
Re: for car - by None1337 - 10.01.2018, 21:40

Forum Jump:


Users browsing this thread: 3 Guest(s)