03.03.2014, 23:06
Hello everyone. My question it's simple. How can I make a player unable to jump or climb? About the climbing, I saw something like getting the special action and then canceling the animation.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_JUMP)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
}
return 1;
}
I think I tried to make something like this before. Using OnPlayerKeyStateChange (Basically getting their position and setting them to it - aka not allowing the velocity increase was a method I found to work).
Try if this works (I think this is how the code should be): pawn Код:
|