Raised This Month: $ Target: $400
 0% 

Give all players item


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 07-15-2013 , 09:55   Give all players item
Reply With Quote #1

I was trying to give all players an item everytime they spawn. But it seems only me who receive it.
PHP Code:
RegisterHam(Ham_Spawn"player""fwd_spawn"1
PHP Code:
public fwd_spawn(id)
{
    
    new 
players[32], num
    get_players
(playersnum"ae""T")
        
    if (!
is_user_alive(id))
    if (
get_cvar_num("health_enable") == 1)
    {
        
set_user_health(id,  120)
    }
    
    new 
weapon get_user_weapon(id)
    if (
is_user_alive(id))
    {
        
acg_drawoverviewradar(id100180180255255255)
        
g_bEnabled[id] = 1
        acg_showteammate
(id1)        
        
cs_set_user_armor(id100CS_ARMOR_VESTHELM)
        
give_item(id"weapon_hegrenade")
        
cs_set_user_bpammo(idCSW_HEGRENADE2)
        
        for(new 
0numi++)
        {
            
give_item(players[id], "weapon_m4a1")
        }
    }
    if (
weapon == CSW_HEGRENADE)
    {
        
cs_set_weapon_ammo(id2)
    }
    return 
PLUGIN_CONTINUE

Randomize 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 06:20.


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