Raised This Month: $32 Target: $400
 8% 

xBullets Rule ~ (Anti-AWP Camp Plugin) [2015]


Post New Thread Reply   
 
Thread Tools Display Modes
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 08-10-2015 , 18:26   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #11

Spoiler


Its on porpuse, i want the weapon to show 3 bullets and 0 bpammo, instead of the default.
And thanks for your help, but your code is very advanced for me.
It only allows 1 bullet / 15 secs, instead of 3 like mine.
I cant make the countdown work on it.
Also, its a total rewrite..

Last edited by Syturi0; 08-10-2015 at 18:26.
Syturi0 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 08-10-2015 , 18:30   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #12

Quote:
Why do you use both PrimaryAttack and CurWeapon ? This does not make sense
CurWeapon to change Ammo+Bpammo
PrimaryAttack to start the countdown task when the player shoots.
I have to use both.
Syturi0 is offline
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
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 08-11-2015 , 11:19   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #14

Quote:
Originally Posted by HamletEagle View Post
One more thing, CurWeapon event give you the player index, there is not point in looping all players.
If i dont loop all players the awp ammo/bpammo wont update if i buy a new one from the shop, only if i drop+pickup for example.
Syturi0 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 08-12-2015 , 17:56   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #15

You can use Ham_Item_Deploy, afaik it is called when buy a new gun.
__________________
Jhob94 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 08-12-2015 , 21:00   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 10-08-2015]
Reply With Quote #16

Quote:
Originally Posted by Jhob94 View Post
You can use Ham_Item_Deploy, afaik it is called when buy a new gun.
Ye, but it doesnt work when you get the gun from 'give_item', i just tested.
Syturi0 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 08-16-2015 , 22:01   Re: xBullets Rule ~ [11-01-2015]
Reply With Quote #17

Quote:
Version: 2.1 (17 August 2015)
- More optimizations.
- Fixed a error that appeared on console.
- Added cvar to see servers using this plugin.

Last edited by Syturi0; 08-16-2015 at 22:02.
Syturi0 is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 01-02-2016 , 10:41   Re: xBullets Rule ~ (Anti-AWP Camp Plugin) [UPDATED 17-08-2015]
Reply With Quote #18

Its been 9 months, can i get this plugin reviewed by some approver?
Thank you
Syturi0 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode