Raised This Month: $ Target: $400
 0% 

[ZP] Help with ammo packs reward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaT'
Junior Member
Join Date: Apr 2010
Old 07-06-2010 , 13:29   Re: [ZP] Help with ammo packs reward
Reply With Quote #3

This is i want, but i don't know that it's ok

PHP Code:
if (get_user_flags(attacker) & ADMIN_LEVEL_B)
{
    while (
g_damagedealt[attacker] > get_pcvar_num(cvar_ADMammodamage)) //cvar_ADMammodamage = 250
    
{
        
g_ammopacks[attacker]++
        
g_damagedealt[attacker] -= get_pcvar_num(cvar_ADMammodamage)
    }
}
else
{
    while (
g_damagedealt[attacker] > get_pcvar_num(cvar_ADMammodamage)) //cvar_ammodamage = 500
    
{

        
g_ammopacks[attacker]++
        
g_damagedealt[attacker] -= get_pcvar_num(cvar_ammodamage)
    }


Last edited by MaT'; 07-06-2010 at 13:56.
MaT' is offline
 



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