Thread: Help:Jetpack
View Single Post
  #5  
Old 01-05-2011, 03:58 AM
Twaina Twaina is offline
Registered User
Join Date: Dec 2010
Posts: 59
Twaina has a little shameless behaviour in the past
Jetpack
So i made this script but its fail when i am on the ground
its ever grab and idle
Quote:
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.jetpack 0;
}

function 
onKeyPressed(code,key)
{
if( 
key == "b" )

if (
this.jetpack 0) {
if(
player.>= 10)

this.jetpack 1;
player.chat="Stop!";
}
else 
{
settimer(0.1);
player.z+= 0.2;



else if( 
key == "o" )
{
this.jetpack 0;
player.0;

}
}
function 
onTimeOut()
{
if(
player.0)
{
this.jetpack 1;
replaceAni("walk""grab");
this.speed 0.05;
player.z-= 0.05;
for ( 
temp.04++ )

if ( 
keydown(i) )
// if the key for that direction is pressed
player.+= vecx(i) * this.speed;
player.+= vecy(i) * this.speed;
}
settimer(0.05);

}
else
{
this.jetpack 0;
replaceAni("grab""walk");
settimer(0);
}

Reply With Quote