18.08.2015, 17:44
I have this defined (taken from SA-MP Wiki)
and this is the code I use on OnPlayerKeyStateChange
In game it sends it only once, any idea why?
Код:
#define HOLDING(%0) \ ((newkeys & (%0)) == (%0))
Код:
if(HOLDING(KEY_SPRINT)) { SendClientMessage(playerid, -1, "HOLDING SPRINT"); if(pInfo[playerid][ApplyingPressure] == 1) { SendClientMessage(playerid, -1, "Holding sprint"); } }