Raised This Month: $12 Target: $400
 3% 

[REQ] Disarm


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
digg
Member
Join Date: Jun 2008
Location: Portugal, Algarve!
Old 07-21-2009 , 06:58   [REQ] Disarm
Reply With Quote #1

Hi,
I want a plugin that disarm all when the round end.

Best regard,
digg
digg is offline
Send a message via MSN to digg
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 07-21-2009 , 07:41   Re: [REQ] Disarm
Reply With Quote #2

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

public plugin_init()
{
    
register_plugin("disarm""1.0""digg");
    
register_logevent("eRoundEnd"2"1=Round_End");
}

public 
eRoundEnd()
{
    new 
plrs[32];
    new 
num;
    
get_players(plrsnum"a");

    for (new 
inumi++)
    {
        
strip_user_weapons(plrs[i]);
    }

TheRadiance is offline
Send a message via ICQ to TheRadiance
digg
Member
Join Date: Jun 2008
Location: Portugal, Algarve!
Old 07-21-2009 , 07:56   Re: [REQ] Disarm
Reply With Quote #3

Thanks ;)
digg is offline
Send a message via MSN to digg
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-21-2009 , 08:14   Re: [REQ] Disarm
Reply With Quote #4

If for jail, you can just use this (works fine with backweapons)

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

#define VERSION "0.0.1"

#define OFFSET_PRIMARYWEAPON        116

public plugin_init()
{
    
register_plugin("Jail Give Weapons"VERSION"ConnorMcLeod")

    
RegisterHam(Ham_Spawn"player""Player_Spawn_Post"1)
}

public 
Player_Spawn_Postid )
{
    if( 
is_user_alive(id) )
    {
        
strip_user_weapons(id)
        
set_pdata_int(idOFFSET_PRIMARYWEAPON0)

        
give_item(id"weapon_knife")

        if( 
cs_get_user_team(id) == CS_TEAM_CT )
        {
            
give_item(id"weapon_deagle")
            
cs_set_user_bpammo(idCSW_DEAGLE35)
            
give_item(id"weapon_m4a1")
            
cs_set_user_bpammo(idCSW_M4A190)
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 00:38.


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