20.02.2011, 12:48
That would be an example for a higher jump
Just look at the code and make it for running (you could use KEY_SPRINT for that)
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;
}