Raised This Month: $ Target: $400
 0% 

Why no ammo [SOLVED]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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 22:41.


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