Raised This Month: $ Target: $400
 0% 

[REQ]10 Seconds no Gun's


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-10-2009 , 10:49   Re: [REQ]10 Seconds no Gun's
Reply With Quote #20

Quote:
Originally Posted by TitANious View Post
Like this
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
#include <cstrike>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "TitANious"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam Ham_Spawn"player""fwSpawn" );
}
public 
fwSpawn id )
{
    
strip_user_weapons id )
    
    
set_task 10.0"GiveWeapons"id )
}
public 
GiveWeapons id )
{
    if ( 
is_user_alive id ) )
    {
        
give_item id"weapon_knife" );
    
        if ( 
get_user_team id ) == )
        {
            
give_item id"weapon_usp" );
            
cs_set_user_bpammo idCSW_USP100 )
        }
        else if ( 
get_user_team id ) == 2)
        {
            
give_item id"weapon_glock18" );
            
cs_set_user_bpammo idCSW_GLOCK18100 )
        }
    }

I said on spawn event.

More info:
http://forums.alliedmods.net/showthread.php?t=42159
__________________
[X]-RayCat is offline
 


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


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