Raised This Month: $ Target: $400
 0% 

ammopack problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-04-2009 , 07:13   Re: ammopack problem
Reply With Quote #9

Try this
PHP Code:
#include <amxmodx>
#include <zombieplague>
 
new g_pCvarAmmo];
 
public 
plugin_init( ) {
    
register_plugin"End Round Reward""1.0""asd" );
    
    
g_pCvarAmmoWIN_HUMANS ] = register_cvar"humans_ammopack""5" );
    
g_pCvarAmmoWIN_ZOMBIES ] = register_cvar"zombies_ammopack""5" );
}

public 
zp_round_endediTeam ) {
    if( 
iTeam == WIN_NO_ONE )
        return;
    
    new 
idiPlayers32 ], iNumiPacks get_pcvar_numg_pCvarAmmoiTeam ] );
    
get_playersiPlayersiNum"ac" );
    
    for( new 
iiNumi++ ) {
        
zp_set_user_ammo_packs( ( id iPlayers] ),
        
zp_get_user_ammo_packsid ) + iPacks );
    }

__________________

Last edited by xPaw; 09-04-2009 at 08:42.
xPaw 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 15:07.


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