Results 1 to 6 of 6

Thread: Jet pack

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Jet pack

    Hi guys i want to make jetpack but the problem is i can't :/ in a map with trigger i can.. but i want it to make it in a shop.
    so if guy press F he will some fly, if press again he fly more.

    script:
    Code:
    bounce( pos, power )
    {
        oldhp = self.health;
        self.health = self.health + power;
        self finishPlayerDamage( self, self, power, 0, "MOD_PROJECTILE", "panzerschreck_mp", undefined, pos, "none", 0 );
        self.health = oldhp;
    }
    
    jumppad_think()
    {
        while (1)
        {
    
            if (!isDefined(self.lastJump))
                self.lastJump = 0;
    
            //iprintlnbold(getTime() - player.lastJump);
            if (getTime() - self.lastJump <= 1000)
            {
                wait 0.05;
                continue;
            }
            self.lastJump = getTime();
    
    	if (self useButtonPressed())
    	{
            self iprintlnbold("^1~^7JUMP^1~");
            self bounce((0,0,1), 1000);
            self bounce((0,0,1), 1000);
            self bounce((0,0,1), 1000);
    	}
        }
    }
    
    initJumppads()
    {
    thread jumppad_think();
    }
    
    main()
    {
        initJumppads();
    maps\mp\_load::main();
    }
    Edit izno: added [ code] tags!
    Keep using [ code] tags plz!

    but it give me errors.. pls i need help how i make the jetpack with press f in a shop?
    Last edited by IzNoGoD; 16th January 2013 at 16:30.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •