Advertisement
DraKiNs

[COD] Super Pulo

Jun 26th, 2011
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  2.  
  3. new Float: pPos[ 3 ];
  4. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys )
  5. {
  6.     if(PRESSED( KEY_JUMP ) && !IsPlayerInAnyVehicle(playerid)) {
  7.         GetPlayerPos(playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] );
  8.         SetPlayerPos(playerid, pPos[ 0 ], pPos[ 1 ], pPos[ 2 ] + 35 );
  9.     }
  10.     return true;
  11. }
  12.  
  13. // Criado por Dice Extreme
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement