Raised This Month: $ Target: $400
 0% 

Triggering function at round-end and giving multiple HE grenades


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EpicKiller
Senior Member
Join Date: Jun 2014
Location: Constanta, Romania
Old 08-12-2014 , 14:50   Re: Triggering function at round-end and giving multiple HE grenades
Reply With Quote #1

Quote:
Originally Posted by Nextra View Post
Note that this is different from giving a player 4 additional grenades. It enforces that the player has exactly 4 grenades instead. So if you want to add 4 (so the player can have 8 after two rounds for example) you need to do this:

PHP Code:
cs_set_user_bpammo(idCSW_HEGRENADEcs_get_user_bpammo(idCSW_HEGRENADE)) 
That truly didn't cross my mind. Thank you, that's a really nice improvement to the plugin.
__________________
~ Swiftly and with style ~
EpicKiller is offline
Send a message via Yahoo to EpicKiller Send a message via Skype™ to EpicKiller
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-13-2014 , 04:15   Re: Triggering function at round-end and giving multiple HE grenades
Reply With Quote #2

Quote:
Originally Posted by EpicKiller View Post
That truly didn't cross my mind. Thank you, that's a really nice improvement to the plugin.
It's not an improvement for what Flicker posted, it's just something different.
Flicker's code set your he grenades to 4, no matter what ammount you have.
Nextra's code add to your actual ammount of he grenades 4. So you will have x+4
__________________
HamletEagle 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 13:12.


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