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:
Edit izno: added [ code] tags!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(); }
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?

					
					
					
						
Reply With Quote
						