Raised This Month: $ Target: $400
 0% 

What's wrong with my code?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-07-2009 , 11:14   Re: What's wrong with my code?
Reply With Quote #8

If you do it that way then you can use the player id in the hamsandwich forward.

PHP Code:
public fwHamPlayerSpawnPostiPlayer )
{
    if( 
is_user_aliveiPlayer ) )
    {
        if ( 
get_user_teamiPlayer ) == )
        {
            
strip_user_weaponsiPlayer )
            
give_item(iPlayer,"weapon_m4a1")
            
give_item(iPlayer,"ammo_556nato")
            
give_item(iPlayer,"ammo_556nato")
            
give_item(iPlayer,"ammo_556nato")
            
give_item(iPlayer,"weapon_deagle")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"ammo_50ae")
            
give_item(iPlayer,"weapon_knife")
            
give_item(iPlayer,"weapon_hegrenade")
        }
        else
        {
            
strip_user_weapons(iPlayer)
            
give_item(iPlayer,"weapon_knife")
        }
    } 

__________________
Bugsy 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 18:24.


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