Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) // Jump 'C'
- {
- if(InChallenge[playerid] == 97 && InMinigame[playerid] == 178)
- {
- if(GetPVarInt(playerid, "UsedJump") ==1)
- {
- GameTextForPlayer(playerid, "~y~Bounce in Cooldown", 3000, 3);
- return true;
- }
- SetPVarInt(playerid, "UsedJump", 1);
- SetTimerEx("ResetJump", 8000, false, "i", playerid); //
- new vID = GetPlayerVehicleID(playerid),Float: POS[3];
- GetVehicleVelocity(vID, POS[0], POS[1], POS[2]);
- SetVehicleVelocity(vID, POS[0], POS[1], POS[2] + 0.3);
- }
- }
- forward ResetJump(playerid);
- public ResetJump(playerid);
- {
- if(IsPlayerConnected(playerid)) DeletePVar(playerid, "UsedJump");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement