Raised This Month: $ Target: $400
 0% 

Drop all weapons on round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 08-27-2009 , 19:20   Drop all weapons on round end
Reply With Quote #1

Hey all, what i want is that when round is over , when cts team win or t team win, all players drop all weapons they have
I think its easy
__________________
superang is offline
Send a message via MSN to superang
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-27-2009 , 20:35   Re: Drop all weapons on round end
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fun>

public plugin_init()
{
    
register_plugin("Drop weapons""1.0""Stewie!");
    
    
register_logevent("round_end"2"1=Round_End");
}

public 
round_end()
{
    
strip_user_weapons(id);
    
give_item(id"weapon_knife");

I've given them a knife back because im nice
__________________
minimiller is offline
Send a message via MSN to minimiller
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-27-2009 , 21:23   Re: Drop all weapons on round end
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta> 

#define OFFSET_PRIMARYWEAPON        116 

public plugin_init()
{
    
register_plugin("Drop weapons""1.0""Stewie!");
    
    
register_logevent("round_end"2"1=Round_End");
}

public 
round_end()
{
    
strip_user_weapons(id);
    
set_pdata_int(idOFFSET_PRIMARYWEAPON0);
    
give_item(id"weapon_knife");

Or in the new round the bug of the strip weapons is fixed?
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
mplayerexe
Senior Member
Join Date: Dec 2008
Old 08-28-2009 , 02:46   Re: Drop all weapons on round end
Reply With Quote #4

Hy,
can someone make a plugin that strip all weapons at round start and give a usp and a knife for CT and a glock and a knife for T
__________________
mplayerexe is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 08-28-2009 , 08:02   Re: Drop all weapons on round end
Reply With Quote #5

Na dont work look
[IMG]http://img44.**************/img44/6136/aasdasdg.png[/IMG]

P.S Alucard are you DarkAlucard from TGF Servers?
__________________

Last edited by superang; 08-28-2009 at 08:08.
superang is offline
Send a message via MSN to superang
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-28-2009 , 08:54   Re: Drop all weapons on round end
Reply With Quote #6

Here
PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta> 

#define OFFSET_PRIMARYWEAPON 116

new g_iMaxPlayers;

public 
plugin_init()
{
    
register_plugin("Drop weapons""1.0""Stewie!");
    
    
register_logevent("round_end"2"1=Round_End");
    
    
g_iMaxPlayers get_maxplayers();
}

public 
round_end()
{
    static 
id;
    for(
id id <= g_iMaxPlayers id++)
    {
        if(!
is_user_alive(id))
            continue;
        
        
strip_user_weapons(id);
        
set_pdata_int(idOFFSET_PRIMARYWEAPON0);
        
give_item(id"weapon_knife");
    }

__________________
Still...lovin' . Connor noob! Hello
Alka is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 08-28-2009 , 09:46   Re: Drop all weapons on round end
Reply With Quote #7

WORKS GREAT can you do another plugin is that you dont move when round end
__________________

Last edited by superang; 08-28-2009 at 09:55.
superang is offline
Send a message via MSN to superang
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-28-2009 , 09:54   Re: Drop all weapons on round end
Reply With Quote #8

@superang

No, i am not this Alucard.

@Alka

Ups, i forget the loop.. i didn't try to compile ><
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-28-2009 , 10:02   Re: Drop all weapons on round end
Reply With Quote #9

PHP Code:
#include <amxmodx>
#include <fun>
#include <fakemeta> 

#define OFFSET_PRIMARYWEAPON 116

new g_iMaxPlayers;

public 
plugin_init()
{
    
register_plugin("Drop weapons""1.0""Stewie!");
    
    
register_logevent("round_end"2"1=Round_End");
    
    
g_iMaxPlayers get_maxplayers();
}

public 
round_end()
{
    static 
id;
    for(
id id <= g_iMaxPlayers id++)
    {
        if(!
is_user_alive(id))
            continue;
        
        
strip_user_weapons(id);
        
set_pdata_int(idOFFSET_PRIMARYWEAPON0);
        
give_item(id"weapon_knife");
        
set_user_maxspeed(id0.00001);
    }

__________________
xPaw is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 08-28-2009 , 10:38   Re: Drop all weapons on round end
Reply With Quote #10

na dont work that :S
Because if he was weapon he dont drop and he can move
__________________

Last edited by superang; 08-28-2009 at 11:08.
superang is offline
Send a message via MSN to superang
Reply


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 20:13.


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