10.08.2014, 13:07
just change the label of float.
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED( KEY_CROUCH ))
{
new FLOAT:q, FLOAT:w, FLOAT:e;
GetPlayerPos(playerid, q, w, e);
SetPlayerPos(playerid, q, w, e+25);
}
return 1;
}