What's problem with this?
#10

Try compiling this

pawn Код:
new SuperJumpEnabled[MAX_PLAYERS], Float:pX, Float:pY, Float:pZ, IsJumping[MAX_PLAYERS];

forward IsJumping(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{    
    if(SuperJumpEnabled[playerid]) = 1;  
    else if(newkeys == KEY_JUMP && !IsJumping[playerid]);
    {
        IsJumping[playerid]=1;        
        GetPlayerVelocity(playerid,pX,pY,pZ);        
        SetPlayerVelocity(playerid,pX,pY,pZ+0.4);        
        SetTimerEx("IsJumping",2500,false,"d",playerid);  
    }
    else
    {        
        SuperJumpEnabled[playerid] = 0;        
        SendClientMessage(playerid, COLOR_TEXT, "[System]:Super Jump is Disabled");    
    }    
    return 1;
}
public IsJumping(playerid)
{    
    IsJumping[playerid] = 0;
    return 1;
}
Reply


Messages In This Thread
What's problem with this? - by Rudy_ - 22.04.2012, 13:06
Re: What's problem with this? - by RollTi - 22.04.2012, 13:09
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:09
Re: What's problem with this? - by Scripter12345 - 22.04.2012, 13:23
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:23
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:26
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:31
Re: What's problem with this? - by JoBullet - 22.04.2012, 13:33
Re: What's problem with this? - by Rudy_ - 22.04.2012, 13:40
Re: What's problem with this? - by [KHK]Khalid - 22.04.2012, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)