[HELP]I need car jump script
#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


Messages In This Thread
[HELP]I need car jump script - by OmarEco - 19.06.2010, 08:52
Re: [HELP]I need car jump script - by OmarEco - 19.06.2010, 11:42
Re: [HELP]I need car jump script - by Flashy - 19.06.2010, 11:56
Re: [HELP]I need car jump script - by OmarEco - 20.06.2010, 20:14
Re: [HELP]I need car jump script - by OmarEco - 21.06.2010, 17:07
Re: [HELP]I need car jump script - by Hiddos - 21.06.2010, 17:14
Re: [HELP]I need car jump script - by OmarEco - 21.06.2010, 18:06
Re: [HELP]I need car jump script - by artex91 - 21.06.2010, 18:08
Re: [HELP]I need car jump script - by DJDhan - 21.06.2010, 18:08
Re: [HELP]I need car jump script - by Niixie - 21.06.2010, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)