Raised This Month: $ Target: $400
 0% 

ammopack problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 09-04-2009 , 06:16   Re: ammopack problem
Reply With Quote #8

Second Problem.

PHP Code:
#include <amxmodx>
#include <zombieplague>
 
new g_pCvarAmmo]
new 
g_iMaxPlayers
 
public plugin_init( )
{
    
register_plugin"End Round Reward""1.0""asd" )
    
g_pCvarAmmo] = register_cvar"humans_ammopack""5" )
    
g_pCvarAmmo] = register_cvar"zombies_ammopack""5" )
 
    
g_iMaxPlayers get_maxplayers( )
}
 
public 
zp_round_endedteam )
{
 for ( new 
1<= g_iMaxPlayersi++ )
 {
  if ( !
is_user_alive) )
   continue
 
  switch ( 
team )
  {
   case 
WIN_HUMANSzp_set_user_ammo_packsizp_get_user_ammo_packs) +get_pcvar_numg_pCvarAmmo] ) )
   case 
WIN_ZOMBIESzp_set_user_ammo_packsizp_get_user_ammo_packs) +get_pcvar_numg_pCvarAmmo] ) )
  }
 }

Sometime it doesn't work.

I want it like if human win at the end round it give them ammo pack
Mr.Noobie 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