Raised This Month: $ Target: $400
 0% 

Weapon Give Dont Work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-20-2009 , 17:31   Weapon Give Dont Work
Reply With Quote #1

I have this Funktion and the CT īs dont get a deagle or m4
Pls say me what i done Wrong


Code:
public Player_Spawn_Post( id )
{
    if( is_user_alive(id) )
    {
        strip_user_weapons(id)
        set_pdata_int(id, OFFSET_PRIMARYWEAPON, 0)

        give_item(id, "weapon_knife")

        if( cs_get_user_team(id) == CS_TEAM_CT )
        {
            give_item(id, "weapon_deagle")
            cs_set_user_bpammo(id, CSW_DEAGLE, 35)
            give_item(id, "weapon_m4a1")
            cs_set_user_bpammo(id, CSW_M4A1, 90)
            cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
        }
    }
}

Last edited by Stylaa; 10-20-2009 at 17:42.
Stylaa is offline
Send a message via ICQ to Stylaa
 



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 17:36.


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