Raised This Month: $ Target: $400
 0% 

[ZP] Help with ammo packs reward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MaT'
Junior Member
Join Date: Apr 2010
Old 07-06-2010 , 12:36   [ZP] Help with ammo packs reward
Reply With Quote #1

My inglish is very bad :S

I need that the admins get and double ammo packs that players, i try with

PHP Code:
while (g_damagedealt[attacker] > get_pcvar_num(cvar_ammodamage))
{

    if(
get_user_flags(attacker) & ADMIN_KICK)
    {
        
g_ammopacks[attacker] += 2
    
}
    else
    {
    
g_ammopacks[attacker]++
    }
    
g_damagedealt[attacker] -= get_pcvar_num(cvar_ammodamage)

and work very well, but with this code the ammo add 2 and i want to add 1 but with a different cvar ej.: cvar_ADMammodamage to put the half of value

What would the code with that while?
MaT' is offline
 


Thread Tools
Display Modes

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 07:12.


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