AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ]10 Seconds no Gun's (https://forums.alliedmods.net/showthread.php?t=94305)

SpokY 06-09-2009 17:05

[REQ]10 Seconds no Gun's
 
Hello Guys, again. =)

My english is not the best, but i need a plugin when the player respawnt on the respawn plugin he dont have for 10 seconds a weapon, after this 10 seconds he get (CT) a usp and (T) a glock.

How i can make this or please make it =)

or how i can change this ? when i want any player get this weapon after 10 seconds

fm_give_item(id,"weapon_scout")



Thanks a lot.

TitANious 06-09-2009 17:20

Re: [REQ]10 Seconds no Gun's
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <hamsandwich>
#include <fun>

#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" )
}
public 
GiveWeapons id )
{
    if ( 
get_user_team id ) == )
    {
        
give_item id"weapon_usp" );
    }
    else if ( 
get_user_team id ) == 2)
    {
        
give_item id"weapon_glock18" );
    }


NOT TESTED

minimiller 06-09-2009 17:32

Re: [REQ]10 Seconds no Gun's
 
edited slightly
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"1);
}
public 
fwSpawn id )
{
    
strip_user_weapons id )
    
    
set_task 10.0"GiveWeapons" )
}
public 
GiveWeapons id )
{
    if ( 
get_user_team id ) == )
    {
        new 
usp give_item id"weapon_usp" );
        
cs_set_weapon_ammo(usp12);
        
cs_set_user_bpammo(idCSW_USP24);
    }
    else if ( 
get_user_team id ) == 2)
    {
        new 
glock give_item id"weapon_glock18" );
        
cs_set_weapon_ammo(glock20);
        
cs_set_user_bpammo(idCSW_GLOCK40);
    }



TitANious 06-09-2009 17:36

Re: [REQ]10 Seconds no Gun's
 
Minimillers will work best

SpokY 06-09-2009 18:07

Re: [REQ]10 Seconds no Gun's
 
@TitANious

mhm no weapons works but after 10 seconds we dont get the weapons ^^

@minimiller

cant compile .. :(

edit :
and when this 10 seconds start so dont have guns and cant pickup guns !!
after 10 seconds gets a usp or glock and a knife and he can pickup guns xD
sorry for bad english
hope u understand this^^

minimiller 06-09-2009 19:35

Re: [REQ]10 Seconds no Gun's
 
my bad
i missed out the GLOCK18

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"1);
}
public 
fwSpawn id )
{
    
strip_user_weapons id )
    
    
set_task 10.0"GiveWeapons" )
}
public 
GiveWeapons id )
{
    if ( 
get_user_team id ) == )
    {
        new 
usp give_item id"weapon_usp" );
        
give_item id"weapon_knife" );
        
cs_set_weapon_ammo(usp12);
        
cs_set_user_bpammo(idCSW_USP24);
    }
    else if ( 
get_user_team id ) == 2)
    {
        new 
glock give_item id"weapon_glock18" );
        
give_item id"weapon_knife" );
        
cs_set_weapon_ammo(glock20);
        
cs_set_user_bpammo(idCSW_GLOCK40);
    }



SpokY 06-10-2009 03:31

Re: [REQ]10 Seconds no Gun's
 
again wrong ..
/home/groups/amxmodx/tmp3/texthn2VQ1.sma(39) : error 017: undefined symbol "CSW_GLOCK"
/home/groups/amxmodx/tmp3/texthn2VQ1.sma(39) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/texthn2VQ1.sma(39) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/texthn2VQ1.sma(39) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/texthn2VQ1.sma(39) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.

xPaw 06-10-2009 03:59

Re: [REQ]10 Seconds no Gun's
 
CSW_GLOCK18

SpokY 06-10-2009 04:06

Re: [REQ]10 Seconds no Gun's
 
sorry, what u mean?

xPaw 06-10-2009 04:51

Re: [REQ]10 Seconds no Gun's
 
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"1);
}
public 
fwSpawn id )
{
    
strip_user_weapons id )
    
    
set_task 10.0"GiveWeapons" )
}
public 
GiveWeapons id )
{
    if ( 
get_user_team id ) == )
    {
        new 
usp give_item id"weapon_usp" );
        
give_item id"weapon_knife" );
        
cs_set_weapon_ammo(usp12);
        
cs_set_user_bpammo(idCSW_USP24);
    }
    else if ( 
get_user_team id ) == 2)
    {
        new 
glock give_item id"weapon_glock18" );
        
give_item id"weapon_knife" );
        
cs_set_weapon_ammo(glock20);
        
cs_set_user_bpammo(idCSW_GLOCK1840);
    }




All times are GMT -4. The time now is 23:33.

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