Advertisement
Oblivion_UFF

asd

Feb 12th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // Jump 'C'
  2. {
  3. if(InChallenge[playerid] == 97 && InMinigame[playerid] == 178)
  4. {
  5. if(GetPVarInt(playerid, "UsedJump") ==1)
  6. {
  7. GameTextForPlayer(playerid, "~y~Bounce in Cooldown", 3000, 3);
  8. return true;
  9. }
  10. SetPVarInt(playerid, "UsedJump", 1);
  11. SetTimerEx("ResetJump", 8000, false, "i", playerid); //
  12. new vID = GetPlayerVehicleID(playerid),Float: POS[3];
  13. GetVehicleVelocity(vID, POS[0], POS[1], POS[2]);
  14. SetVehicleVelocity(vID, POS[0], POS[1], POS[2] + 0.3);
  15. }
  16. }
  17.  
  18. forward ResetJump(playerid);
  19. public ResetJump(playerid);
  20. {
  21. if(IsPlayerConnected(playerid)) DeletePVar(playerid, "UsedJump");
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement