Raised This Month: $32 Target: $400
 8% 

DR Duel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dsadweqw2
Junior Member
Join Date: Oct 2020
Old 10-25-2020 , 08:10   DR Duel
Reply With Quote #1

Hello i want the DR Duel plugin only CT with deagle only
when the last ct type /ct to start the duel directly without the menu to choose deagle. ty, i will translate the sma by myself np in my language
dsadweqw2 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-25-2020 , 13:15   Re: DR Duel
Reply With Quote #2

Not sure what u mean with duel, but here's a quicky, untested.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#pragma semicolon 1

#define PLUGIN  "DR Duel"
#define VERSION "1.0"
#define AUTHOR  "NapoleoN#"

#if !defined MAX_PLAYERS
    
const MAX_PLAYERS 32;
#endif

new iPlayeriNumiPlayers[MAX_PLAYERS];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("say /ct""StartDuel");

    
RegisterHam(Ham_Spawn"player""PostPlayerSpawn"1);
}

public 
StartDuel(id)
{
    
get_players(iPlayersiNum"e""CT");

    if(
iNum == 1)
    {
        
get_players(iPlayersiNum"a");

        for(new 
iiNumi++)
        {
            
iPlayer iPlayers[i];
            
strip_user_weapons(iPlayer);
            
give_item(iPlayer"weapon_deagle");
            
cs_set_user_bpammo(iPlayerCSW_DEAGLE35);
        }
    }
}

public 
PostPlayerSpawn(id)
{
    for(new 
iiNumi++)
    {
        
iPlayer iPlayers[i];
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_knife");
    }

__________________

Last edited by Napoleon_be; 10-25-2020 at 13:18.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
dsadweqw2
Junior Member
Join Date: Oct 2020
Old 10-28-2020 , 18:21   Re: DR Duel
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
Not sure what u mean with duel, but here's a quicky, untested.

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
// #include <amxmisc>
#include <cstrike>
// #include <engine>
// #include <fakemeta>
#include <hamsandwich>
#include <fun>
// #include <xs>
// #include <sqlx>

#pragma semicolon 1

#define PLUGIN  "DR Duel"
#define VERSION "1.0"
#define AUTHOR  "NapoleoN#"

#if !defined MAX_PLAYERS
    
const MAX_PLAYERS 32;
#endif

new iPlayeriNumiPlayers[MAX_PLAYERS];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_clcmd("say /ct""StartDuel");

    
RegisterHam(Ham_Spawn"player""PostPlayerSpawn"1);
}

public 
StartDuel(id)
{
    
get_players(iPlayersiNum"e""CT");

    if(
iNum == 1)
    {
        
get_players(iPlayersiNum"a");

        for(new 
iiNumi++)
        {
            
iPlayer iPlayers[i];
            
strip_user_weapons(iPlayer);
            
give_item(iPlayer"weapon_deagle");
            
cs_set_user_bpammo(iPlayerCSW_DEAGLE35);
        }
    }
}

public 
PostPlayerSpawn(id)
{
    for(new 
iiNumi++)
    {
        
iPlayer iPlayers[i];
        
strip_user_weapons(iPlayer);
        
give_item(iPlayer"weapon_knife");
    }

ty thats what i needed but can u add an chat info about this plugin? and if u can make it only for the last CT on deathrun only and when someone type /duel to start in 3 seconds with a message
dsadweqw2 is offline
Old 10-29-2020, 05:00
dsadweqw2
This message has been deleted by asherkin.
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 14:34.


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