Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- new Float: pPos[ 3 ];
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys )
- {
- if(PRESSED( KEY_JUMP ) && !IsPlayerInAnyVehicle(playerid)) {
- GetPlayerPos(playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] );
- SetPlayerPos(playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] + 35 );
- }
- return true;
- }
- // Criado por Dice Extreme
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement