Detecting rapidshot
#2

You can use the OnPlayerWeaponShot callback and use gettime(), store it somewhere to keep track of shooting intervals.

For instance:

lastShot[playerid] = gettime();

gettime() - lastShot[playerid] returns the amount of seconds that have passed from the moment the player fired a weapon.
Reply


Messages In This Thread
Detecting rapidshot - by Fancy - 28.07.2015, 18:18
Re: Detecting rapidshot - by PaulDinam - 28.07.2015, 18:20
Re: Detecting rapidshot - by Abagail - 28.07.2015, 18:35
Re: Detecting rapidshot - by Fancy - 28.07.2015, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)