[HELP]I need car jump script
#1

in server Awesome stuntages 87.98.254.97:7778
there is car jump by press + or 2 i need this script for my server 217.139.199.10:7777
Reply
#2

help me
Reply
#3

You must use functions.

GetPlayerPos and SetPlayerPos next.
Learn to use it on SAMP Wiki.
Reply
#4

can you learn me how
Reply
#5

can any bode make one for me
Reply
#6

GetVehicleVelocity(vehicle,x,y,z);
SetVehicleVelocity(vehicle,x,y,z+2);
Reply
#7

Quote:
Originally Posted by Hiddos
GetVehicleVelocity(vehicle,x,y,z);
SetVehicleVelocity(vehicle,x,y,z+2);
ok but where i pase that
Reply
#8

Read this: http://forum.sa-mp.com/index.php?topic=177667.0
Reply
#9

Quote:
Originally Posted by omarhassan
Quote:
Originally Posted by Hiddos
GetVehicleVelocity(vehicle,x,y,z);
SetVehicleVelocity(vehicle,x,y,z+2);
ok but where i pase that
Under OnPlayerKeyStateChange.
Reply
#10

Its very basic Omarhassan.
Heres what i found on the wiki page, and made a few changes.

Код:
//Top of script
#define PRESSED(%0) \
	(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_SUBMISSION))
	{
        new Float:x, Float:y, Float:z;
        if(IsPlayerInAnyVehicle(playerid))
        {
			GetVehicleVelocity(vehicle,x,y,z);
            SetVehicleVelocity(vehicle,x,y,z+2);
		}
		else
		{
			GetPlayerVelocity(playerid, x, y, z);
            SetPlayerVelocity(playerid, x, y, z + 2.0);
        }
	}
	return 1;
}
There, if you are on foot, you get 2 meters up in the air. if you are in car, you get 2 meters up in the air.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)