Raised This Month: $ Target: $400
 0% 

[REQ]10 Seconds no Gun's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-10-2009 , 10:36   Re: [REQ]10 Seconds no Gun's
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#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 )
{
    
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 dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 06-10-2009 , 10:43   Re: [REQ]10 Seconds no Gun's
Reply With Quote #2

Quote:
Originally Posted by TitANious View Post
PHP Code:
/* Plugin generated by AMXX-Studio */

#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 )
{
    
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 )
    }

You must skip dead players on spawn event.

Code:
public fwSpawn( id ) {     if( is_user_alive( id ) )     {         //yay user is alive.. do whatever you like     } }
__________________
[X]-RayCat is offline
Reply



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:33.


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