Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________________________________________________________________
- | _ _ ________ |
- | ( \ ( \ ( _____ \ |
- | | | | | ______ | | \ \ |
- | | |____| | ( ___\ | | \ \ |
- | | ____ | \ \ (_) | | ) ) |
- | | | | | _ \ \ | | / / |
- | | ) | ) ( )__\ \ | |_____/ / |
- | |_/ |_/ \_______/ |_________/ |
- | |
- | [HSD] High Speed Drivers |
- | |
- | [HSD] Company Clan of Programmers, Scripters, and Mappers |
- |______________________________________________________________________|
- http://forum.sa-mp.com/member.php?u=211939
- Updated Date: 09/27/2013 (MM/DD/YYYY)
- Visit Me on SA-MP Forum for More Updates
- Let the Credits !
- • Super Fast System
- • [1] Command(s)
- • Fast Commands to Enable or Disable System
- • http://forum.sa-mp.com/member.php?u=211939 | Visit Me on SA-MP Forum |.
- ~ Do: ~
- - Must have Permission if you want to Share this on another Website.
- - etc.
- ~ Do Not: ~
- - Remove Credits.
- - Change Author Name / Information.
- - Stealing Filterscript.
- - No Permission but Sharing on another Website.
- - etc.
- [ Information ] :-
- Author: SAMProductions
- FilterScript Name: Simple MegaJump System v1
- Updated Date: 09/27/2013 - (MM/DD/YYYY)
- Thanks To:
- Others - a_samp
- ZeeX - zcmd
- Y_Less - sscanf2
- and to Whoever i forgot to Mention
- -: [ End Information ]
- • Do not Remove the Credits.
- • Do not Change the Author Name / Information.
- • Do not Steal the Filterscript.
- • Disrespecting Any of These, You will Die.
- • Disrespecting Any of These, I'll Rape You.
- • Disrespecting Any of These, I'll Report You.
- • Thanks For Using, Enjoy :)
- //----------------------------------------------------------------------------// */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("<|-----------------------[Loaded]-----------------------|>");
- print(" | Mega Jump System (/megajump) Made By: SAMProductions |");
- print("<|-----------------------[Loaded]-----------------------|>");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("<|----------------------[UnLoaded]----------------------|>");
- print(" | Mega Jump System (/megajump) Made By: SAMProductions |");
- print("<|----------------------[UnLoaded]----------------------|>");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- new MegaJump[MAX_PLAYERS];
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- public OnPlayerConnect(playerid)
- {
- MegaJump[playerid] = 0;
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- MegaJump[playerid] = 0;
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(MegaJump[playerid] == 1)
- {
- if(PRESSED(KEY_JUMP))
- {
- new Float:P[3];
- GetPlayerPos(playerid,P[0],P[1],P[2]);
- GetPlayerVelocity(playerid,P[0],P[1],P[2]);
- SetPlayerVelocity(playerid,P[0],P[1],P[2]+5.0);
- }
- }
- return 1;
- }
- CMD:megajump(playerid, params[])
- {
- if(MegaJump[playerid] == 0)
- {
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}You have Enabled Mega Jump !");
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}Use {FF0000}/megajump {EEEEEE}again, If you wish to {FF0000}Disable {EEEEEE}it.");
- PlayerPlaySound(playerid, 1137, 0.0,0.0,0.0);
- MegaJump[playerid] = 1;
- }
- else if(MegaJump[playerid] == 1)
- {
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}You have Disabled Mega Jump !");
- SendClientMessage(playerid, -1, "{FF0000}<!> {EEEEEE}Use {FF0000}/megajump {EEEEEE}again, If you wish to {FF0000}Enable {EEEEEE}it.");
- PlayerPlaySound(playerid, 1137, 0.0,0.0,0.0);
- MegaJump[playerid] = 0;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment