Player Speed and Jump.
#4

That would be an example for a higher jump

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_JUMP) {
        new
            Float: vX,
            Float: vY,
            Float: vZ;
        GetPlayerVelocity(playerid, vX, vY, vZ);
        SetPlayerVelocity(playerid, vX, vY, (vZ * 1.3));
    }
    return 1;
}
Just look at the code and make it for running (you could use KEY_SPRINT for that)
Reply


Messages In This Thread
Player Speed and Jump. - by Randomai - 20.02.2011, 10:07
Re: Player Speed and Jump. - by Calgon - 20.02.2011, 10:09
Re: Player Speed and Jump. - by Randomai - 20.02.2011, 10:12
AW: Player Speed and Jump. - by Nero_3D - 20.02.2011, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)