27.03.2013, 09:50
How can I do that if I press the C key the character jump? more I press the more C goes high, thanks
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_CROUCH)
{
SetPlayerVelocity(playerid, 0.0, 0.0, 0.5);
}
return 1;
}