21.06.2010, 18:15
Its very basic Omarhassan.
Heres what i found on the wiki page, and made a few changes.
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.
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; }