UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Super Speed script

broken avatar :(
Created 7 years ago
by hajhaka
0 Members and 1 Guest are viewing this topic.
3,842 views
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 1 November 2013
Last active: 3 years ago
Posts
61
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
hajhaka's Groups
hajhaka's Contact & Social Links
Hello everyone today im gonna release my 2nd script in 1 day wowwowow  :rainbow:
So this one is really simular to my last one but it gives you speed
Installation:

add
Code Snippet
Plaintext
#using scripts\zm\_zm_score;

at the top of your mapname.gsc

here
Code Snippet
Plaintext
zm_usermap::main();

add this underneeth
Code Snippet
Plaintext
thread speed();

Make a trigger_use in Radiant
give it target name SpeedTrigger

Add this at the bottom of your mapname.gsc

Code Snippet
Plaintext
function speed()
{
    trigger = GetEnt("SpeedTrigger", "targetname");
    trigger SetHintString("Press ^3&&1^7 For Speed [cost 10000");
    trigger SetCursorHint("HINT_NOICON");
    SpeedCost = 10000; // Edit the value to change how mutch points its gonna cost

     
    while(1)
    {
        trigger waittill("trigger", player);
   
        if(player.score >= SpeedCost && !isDefined(player.is_speed))
        {
            player zm_score::minus_to_player_score(SpeedCost);
            player PlayLocalSound( "cha_ching" );
            player SetMoveSpeedScale(2);
            player.is_speed = true;
            trigger SetHintStringForPlayer( player, "You Are Already in Speed Mode" );
            player iprintlnbold("Speed mode for 10 minutes GO SUPER SAIYAN");
            player thread speed_cooldown(trigger);
            wait(2);
        }
        else if( isDefined(player.is_speed) && player.is_speed )
        {
             
        }
        else
        {
            trigger SetHintStringForPlayer( player, "You Need "+SpeedCost+" points to Enable Speed Mode" );
            trigger PlayLocalSound ( "deny" );
            wait(2);
            trigger SetHintStringForPlayer(player, "Press ^3&&1^7 For Speed Mode");
        }
    }
}

function speed_cooldown(trigger)
{
    wait(600); // Edit this for the cooldown value 1 = 1 second
    self.is_speed = undefined;
    self SetMoveSpeedScale(1);
    self iprintlnbold( "Speed Mode Disabled You can buy again in 45 sec" );
    trigger SetHintStringForPlayer( self, "Comback later!" );
    wait (45);
    trigger SetHintStringForPlayer(self, "Press ^3&&1^7 For Speed Mode [Cost 10000");
}

For this script i have added a cooldown so the player have to wait 45 seconds before buying the trigger again
U can remove this by changing
This
Code Snippet
Plaintext
function speed_cooldown(trigger)
{
    wait(600); // Edit this for the cooldown value 1 = 1 second
    self.is_speed = undefined;
    self SetMoveSpeedScale(1);
    self iprintlnbold( "Speed Mode Disabled You can buy again in 45 sec" );
    trigger SetHintStringForPlayer( self, "Comback later!" );
    wait (45);
    trigger SetHintStringForPlayer(self, "Press ^3&&1^7 For Speed Mode [Cost 10000");
}

to this
Code Snippet
Plaintext
function speed_cooldown(trigger)
{
    wait(600); // Edit this for the cooldown value 1 = 1 second
    self.is_speed = undefined;
    self SetMoveSpeedScale(1);
    self iprintlnbold( "Speed Mode Disabled" );
    trigger SetHintStringForPlayer(self, "Press ^3&&1^7 For Speed Mode [Cost 10000");
}

credit me if u want but its up to you
Have Fun!  :nyan:
But if ur gonna credit me use name "m1cke"
Last Edit: November 27, 2016, 01:17:56 am by hajhaka
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 28 December 2014
Last active: 4 years ago
Posts
45
Respect
Forum Rank
Legless Crawler
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Be sure to follow me on Twitter:
https://twitter.com/CraftDAnimation
×
CraftDAnimations's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
I just installed this on my main test map and it worked fine.  But when I came to installing it in a BLANK new map I get this error when compiling

broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I just installed this on my main test map and it worked fine.  But when I came to installing it in a BLANK new map I get this error when compiling

(Image removed from quote.)

That error most likely is due to you putting it in a new gsc. Your are probably missing this at the top, which is already in mapname.gsc.
Code Snippet
Plaintext
#using scripts\zm\_zm_score;
Last Edit: November 25, 2016, 04:39:56 am by MakeCents
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 1 November 2013
Last active: 3 years ago
Posts
61
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
hajhaka's Groups
hajhaka's Contact & Social Links
Yeah sorry about that i forgot about needing to include zm_score im gonna update ty make cents

 
Loading ...