Raised This Month: $ Target: $400
 0% 

Team Balancer for DeathMatch


Post New Thread Reply   
 
Thread Tools Display Modes
Tricksous
Junior Member
Join Date: May 2011
Old 05-11-2011 , 10:48   Re: Team Balancer for DeathMatch
Reply With Quote #21

Please, what must I do for install this plugin ?

I'm french and so I don't understand all this out ! x)

Just create a file cfg in cstrike/addons/sourcemod/configs and paste all things regalis posted here ?
Tricksous is offline
HBxander
Senior Member
Join Date: Jan 2011
Location: Behind you!
Old 05-11-2011 , 11:02   Re: Team Balancer for DeathMatch
Reply With Quote #22

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

#define PLUGIN "DeathMatch TeamBalancer"
#define VERSION "1.0"
#define AUTHOR "HBxander"

public plugin_init ( )    
    
register_event "DeathMsg""eDeath""a" )

public 
eDeath ( )
{
    new 
victim read_data )
    new 
num_tnum_cttplayers 32 ], ctplayers 32 ]
    
    
get_players tplayersnum_t"e""TERROISTS" )
    
get_players ctplayersnum_ct"e""CT" )
    
    if ( 
num_t num_ct )
        
CheckTeam victim )
    else if ( 
num_ct num_t )
        
CheckTeam victim )
}

public 
respawn iPlayer )
    
spawn iPlayer )
    
public 
CheckTeam iPlayer )
{
    if ( 
cs_get_user_team iPlayer ) == CS_TEAM_T )
        {
            
cs_set_user_team iPlayerCS_TEAM_CT )
            
set_task 0.5"respawn"iPlayer )
        }
        else
        {
            
cs_set_user_team iPlayerCS_TEAM_T )
            
set_task 0.5"respawn"iPlayer )
        }

should work, not tested.
__________________
Selling:

- PointMod for Hide And Seek - $20
- Private BlockMaker with Weapon Block And More - $50
- Achievements ( FFA GamePlay ) - $25

PM Me about Private Work!
HBxander is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-11-2011 , 11:06   Re: Team Balancer for DeathMatch
Reply With Quote #23

spawn native is not made for players, only for entities, also for deathmatch you don't have to bother about respawning players ;)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 05-11-2011, 11:11
Tricksous
This message has been deleted by Exolent[jNr]. Reason: English only.
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 22:19.


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