Player Speed and Jump.
#1

How i can change player speed and jump highness?
Reply
#2

GetPlayerVelocity
SetPlayerVelocity
SetPlayerPos
Reply
#3

example?can anyone make player run 30% faster?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)