Raised This Month: $ Target: $400
 0% 

Why no ammo [SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 09-29-2009 , 13:49   Why no ammo [SOLVED]
Reply With Quote #1

Why i dont get ammo but i get 1 of this guns but no ammo:

PHP Code:
    new const weapons[][] = {
     
"weapon_m4a1",
     
"weapon_ak47",
     
"weapon_xm1014",
     
"weapon_m3",
     
"weapon_mac10",
     
"weapon_deagle"
    
}; 
Code:

PHP Code:
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
 
    public 
fw_PlayerSpawn_Post(id)
    {
     if (!
is_user_alive(id))
         return 
HAM_IGNORED
 
     
static team;team get_user_team(id)
 
     if(
team == 1// Terrorist
     
{
         
strip_user_weapons(id)
         
give_item(idweapons[random_num(0sizeof weapons 1)])
     }
     else if(
team == 2// CT
     
{
         
strip_user_weapons(id)
         
give_item(idweapons[random_num(0sizeof weapons 1)])
     }
 
     return 
HAM_HANDLED
    


Last edited by DoviuX; 09-29-2009 at 13:59.
DoviuX is offline
Send a message via Skype™ to DoviuX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-29-2009 , 13:56   Re: Why no ammo
Reply With Quote #2

Use cs_set_user_bpammo()
__________________
Arkshine is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 09-29-2009 , 13:59   Re: Why no ammo
Reply With Quote #3

yea i find out
DoviuX is offline
Send a message via Skype™ to DoviuX
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 22:41.


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