09.01.2018, 12:29
(
Последний раз редактировалось None1337; 10.01.2018 в 21:40.
)
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
Any idea?
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);