21.02.2011, 10:50
Making zombie server, and i want zombies can make single super jump by pressing their jump-key.i want that they wont take fall damage.any ideas how to do that?
this is code for jump, but if i press jump whole time, i can fly.
and need help with fall damage
this is code for jump, but if i press jump whole time, i can fly.
Код:
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, 1);
}
return 1;
}


.Is there any command like: