Raised This Month: $ Target: $400
 0% 

[req] Replace Disconnected T Modification


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 07-18-2014 , 12:40   [req] Replace Disconnected T Modification
Reply With Quote #1

The request is simple, I think...

If can be done, I would like this plugin to totally ignore spectator team.

When there are people in the spec team, and a TT disconnects, spec team counts, and the people that are afk are put into tt team.

This is a trouble for me.

This plugin is for Deathrun Mod. It replaces the TT for a CT user, when It disconnects.

If I explained myself wrongly, please tell me.

Thanks
Attached Files
File Type: sma Get Plugin or Get Source (Replace_Disconnected_T.sma - 598 views - 5.1 KB)

Last edited by sigerman; 08-24-2014 at 06:13.
sigerman is offline
Old 07-18-2014, 22:23
sigerman
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 08-24-2014 , 06:16   Re: [req] Replace Disconnected T Modification
Reply With Quote #2

none can help?
sigerman is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 08-24-2014 , 06:50   Re: [req] Replace Disconnected T Modification
Reply With Quote #3

What you want ? ! You want When T Disco Choose Player From Spec And transfer It To T Team ?
__________________
Eagle07 is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 08-24-2014 , 07:13   Re: [req] Replace Disconnected T Modification
Reply With Quote #4

Quote:
Originally Posted by Eagle07 View Post
What you want ? ! You want When T Disco Choose Player From Spec And transfer It To T Team ?
I want the people that are in spec, not being count by the plugin.
So, imagine that there is a person in spec team, the plugin will look for all the people in only CT team and then replace the TT disconnected, so the plugin will ignore the people that is spectating.

The problem that I have with this plugin, is that uses the people in spec team to replace the tt disconnected

Last edited by sigerman; 08-24-2014 at 07:16.
sigerman is offline
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 08-24-2014 , 07:18   Re: [req] Replace Disconnected T Modification
Reply With Quote #5

Try Try !
PHP Code:
public client_disconnect(id){  
    
_UnSet(_humanid)
    
_UnSet(_aliveid)
    new 
players[32], pnum
    
for(new i=1i<=g_max_playersi++){
        if(!
_Is(_humani))
            continue
        if(
cs_get_user_team(i) == CS_TEAM_T)
            return
        
players[pnum++] = i
    
}
    if(
pnum<=0)
        return
    new 
new_terr players[random(pnum)]
    
cs_set_user_team(new_terrCS_TEAM_T)

    
announce_t_change(new_terrid)

    if(!
g_valid_origin){
        
ExecuteHamB(Ham_CS_RoundRespawnnew_terr)
        return
    }
    
ExecuteHamB(Ham_CS_RoundRespawnnew_terr)
    
g_valid_origin true
    
new param[2]
    
param[0] = new_terr
    param
[1] = 10 //max teleport attempts
    
restore_origin(param)


PHP Code:
public client_disconnect(id){  
    
_UnSet(_humanid)
    
_UnSet(_aliveid)
    new 
players[32], pnum
    
for(new i=1i<=g_max_playersi++){
        if(!
_Is(_humani))
            continue
        if(
cs_get_user_team(i) == CS_TEAM_T)
            return
        if(
cs_get_user_team(i) == CS_TEAM_SPECTATOR)
            return
        
players[pnum++] = i
    
}
    if(
pnum<=0)
        return
    new 
new_terr players[random(pnum)]
    
cs_set_user_team(new_terrCS_TEAM_T)

    
announce_t_change(new_terrid)

    if(!
g_valid_origin){
        
ExecuteHamB(Ham_CS_RoundRespawnnew_terr)
        return
    }
    
ExecuteHamB(Ham_CS_RoundRespawnnew_terr)
    
g_valid_origin true
    
new param[2]
    
param[0] = new_terr
    param
[1] = 10 //max teleport attempts
    
restore_origin(param)

__________________
Eagle07 is offline
sigerman
Senior Member
Join Date: Aug 2013
Location: Argentina, Bs.As.
Old 08-24-2014 , 07:42   Re: [req] Replace Disconnected T Modification
Reply With Quote #6

Didn't work! Thanks for give me your help!

@Eagle07

Last edited by sigerman; 08-24-2014 at 07:44.
sigerman is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 08-24-2014 , 09:54   Re: [req] Replace Disconnected T Modification
Reply With Quote #7

IIRC, I saw a similar request some days/weeks ago. try searching in posts or titles for this keyword: disconnect*.
__________________
ANTICHRISTUS 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 19:41.


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