View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-11-2015 , 04:38   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #13

You can only alter the two offsets:

PHP Code:
set_pdata_float(Entitym_flNextPrimaryAttackdelayXoWeapon)
set_pdata_float(Entitym_flNextSecondaryAttackdelayXoWeapon
Anyway, what I did was only to do what the game does(if you look at what I linked, you will see the same code).
You can count the attacks and set the offsets after 3 attacks. CountDown is not needed as game calculate the next fire time automatically, you will have just to display the message.

One more thing, CurWeapon event give you the player index, there is not point in looping all players.
__________________

Last edited by HamletEagle; 08-11-2015 at 04:45.
HamletEagle is offline