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

Cs 1.6 Death Run Mod ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AraneLT
BANNED
Join Date: Apr 2009
Location: Turkey
Old 04-06-2009 , 15:11   Cs 1.6 Death Run Mod ?
Reply With Quote #1

Hello friends,

Counter Strike 1.6 for the death run mode here?
Write a plugin and this plugin need to be, a terrorist must be up to 2 on the map, it should be Ct. Is there such a mod?
AraneLT is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 04-06-2009 , 15:15   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #2

Yes there is couple of DeathRun managers, and you are even allowed to search them from here!
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-06-2009 , 15:15   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #3

I'm not sure about what you want, try this :
Attached Files
File Type: sma Get Plugin or Get Source (dr_team_ratio.sma - 5238 views - 2.4 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SkubiDu
Junior Member
Join Date: May 2018
Old 06-07-2018 , 10:00   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #4

And me want deathrun mod.



@ConnorMcLeod

Im remaked you plugin

PHP Code:
/*    Copyright © 2009, SkubiDu

    DeathRun Team- Ration is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with DeathRun Team Ratio; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "DeathRun Team-ration"
#define AUTHOR "SkubiDu"
#define VERSION "0.1.0"

#define MAX_PLAYERS 32

#define TEAM_T        1
#define TEAM_CT    2
#define CS_OFFSET_TEAM 114
#define cs_get_user_team(%1)            get_pdata_int(%1, CS_OFFSET_TEAM)
#define cs_set_user_team_fast(%1,%2)    set_pdata_int(%1, CS_OFFSET_TEAM, %2)

new g_iMaxPlayers
new g_pCvarRatio
new sv_restart

new g_bIsConnected[MAX_PLAYERS+1]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0")

    
g_pCvarRatio register_cvar("dr_terrorists_ratio""0.25")

    
g_iMaxPlayers get_maxplayers()
    
sv_restart get_cvar_pointer("sv_restart" "1")
}

public 
client_putinserverid )
{
    
g_bIsConnected[id] = true
}

public 
client_disconnectid )
{
    
g_bIsConnected[id] = false
}

public 
Event_HLTV_New_Round()
{
    new 
iPlayers[MAX_PLAYERS], iNumidiTeam
    
for(id=1id<=g_iMaxPlayersid++)
    {
        if( 
g_bIsConnected[id] && ( TEAM_T <= cs_get_user_team(id) <= TEAM_CT ) )
        {
            
iPlayers[iNum++] = id
        
}
    }

    if( 
iNum )
    {
        return
    }

    new 
iTerroristsNum max(1floatroundget_pcvar_float(g_pCvarRatio) * iNum floatround_floor ))
    new 
iRand
    
new szName[32]

    while( 
iTerroristsNum )
    {
        
iRand random_num(0iNum)
        if( (
id iPlayers[iRand]) )
        {
            
cs_set_user_team_fast(idTEAM_T)
            if( 
iNum-iRand )
            {
                
iPlayers[iRand] = iPlayers[iNum-1]
            }

            --
iNum
            
--iTerroristsNum

            get_user_name
(idszNamecharsmax(szName))
            
client_print(0print_chat"[Dr] %s has be choosen to be a terrorist."szName)
        }
    }

    for(new 
ii<iNumi++)
    {
        if( (
id iPlayers[i]) )
        {
            
cs_set_user_team_fast(idTEAM_CT)
        }
    }

COOL
SkubiDu is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-07-2018 , 13:02   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #5

Lel, reviving thread which was posted 9 YEARS ago?
__________________
CrAzY MaN is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 06-08-2018 , 00:00   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #6

hahah 9 year ago ahahah
SHIELD755 is offline
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 06-09-2018 , 10:04   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #7

How did he even find this post!
Visinescu is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 06-10-2018 , 10:06   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #8

i also doesn't know i think he just open random page and chose it ����
SHIELD755 is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 06-10-2018 , 10:50   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #9

An interesting fact besides all these bumps is that this thread has reached 19k views... and its just a request.
__________________

Last edited by Relaxing; 06-10-2018 at 10:51.
Relaxing is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 06-10-2018 , 11:47   Re: Cs 1.6 Death Run Mod ?
Reply With Quote #10

hmmm woow that is awsome old threads are history
SHIELD755 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 05:21.


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