Raised This Month: $ Target: $400
 0% 

[REQ]10 Seconds no Gun's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 06-09-2009 , 17:05   [REQ]10 Seconds no Gun's
Reply With Quote #1

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.

Last edited by SpokY; 06-09-2009 at 17:16.
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-09-2009 , 17:20   Re: [REQ]10 Seconds no Gun's
Reply With Quote #2

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
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-09-2009 , 17:32   Re: [REQ]10 Seconds no Gun's
Reply With Quote #3

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);
    }

__________________
minimiller is offline
Send a message via MSN to minimiller
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-09-2009 , 17:36   Re: [REQ]10 Seconds no Gun's
Reply With Quote #4

Minimillers will work best
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 06-09-2009 , 18:07   Re: [REQ]10 Seconds no Gun's
Reply With Quote #5

@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^^

Last edited by SpokY; 06-09-2009 at 18:42.
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 06-09-2009 , 19:35   Re: [REQ]10 Seconds no Gun's
Reply With Quote #6

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);
    }

__________________
minimiller is offline
Send a message via MSN to minimiller
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 06-10-2009 , 03:31   Re: [REQ]10 Seconds no Gun's
Reply With Quote #7

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.
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-10-2009 , 03:59   Re: [REQ]10 Seconds no Gun's
Reply With Quote #8

CSW_GLOCK18
__________________
xPaw is offline
SpokY
Senior Member
Join Date: Feb 2009
Location: Darmstadt
Old 06-10-2009 , 04:06   Re: [REQ]10 Seconds no Gun's
Reply With Quote #9

sorry, what u mean?
__________________
xtream.eSports Weil's einfach nur Geil ist !
www.xtream-esports.com
SpokY is offline
Send a message via ICQ to SpokY Send a message via MSN to SpokY
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-10-2009 , 04:51   Re: [REQ]10 Seconds no Gun's
Reply With Quote #10

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);
    }

__________________
xPaw 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