jump car script +rep - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: jump car script +rep (
/showthread.php?tid=329894)
jump car script +rep -
Aloushi - 30.03.2012
this is script jump car how to make when press h or caps lock jump car ?
PHP код:
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+2);
this is script jump car how to make when press h or caps lock jump car ?
Re: jump car script +rep -
antonio112 - 30.03.2012
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_LOOK_BEHIND)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+2);
}
}
return 1;
}
KEY LOOK BEHIND should be the CAPS LOCK key if I'm not wrong. If you want other key, use this link:
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Re: jump car script +rep -
Aloushi - 30.03.2012
OO thanks