17.10.2016, 12:41
Hey guys, I am scripting an Anti Ammo Hacking and I was wondering what should I do
I can't detect non-bullet weapons being shot using OnPlayerWeaponShot, I have to use OnPlayerKeyStateChange or OnPlayerUpdate, now I don't know which one to use to reduce ammo from the variable
My question is, how can I do that while the player is holding a button it will do something ?
This way ?
I can't detect non-bullet weapons being shot using OnPlayerWeaponShot, I have to use OnPlayerKeyStateChange or OnPlayerUpdate, now I don't know which one to use to reduce ammo from the variable
My question is, how can I do that while the player is holding a button it will do something ?
This way ?
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
while(HOLDING(KEY_FIRE))
{
}
return 1;
}