[REQ]Some Requests
#4

z is the altitude so if u like add : SetVehiclePos(vehicleid,vehiclex,vehicley,vehiclez +30); will make it jump here is an example (not test):
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_CROUCH))
{
new vehicleid = GetPlayerVehicleID(playerid);
new Float:vehiclex;
new Float:vehicley;
new Float:vehiclez;
GetVehiclePos(vehicleid,vehiclex,vehicley,vehiclez);
SetVehiclePos(vehicleid,vehiclex,vehicley,vehiclez+30);
}
return 1;
}
when u do this ,, when u press Crouch, ur car will jump
Reply


Messages In This Thread
[REQ]Some Requests - by yoan103 - 28.03.2010, 15:48
Re: [REQ]Some Requests - by aircombat - 28.03.2010, 15:52
Re: [REQ]Some Requests - by yoan103 - 28.03.2010, 15:53
Re: [REQ]Some Requests - by aircombat - 28.03.2010, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)