Raised This Month: $ Target: $400
 0% 

I look for a csdm fix respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
THC
Member
Join Date: May 2009
Old 11-05-2011 , 05:30   I look for a csdm fix respawn
Reply With Quote #1

Hi
I just want to know if its possible to fix csdm to respawn again after i was spectator [to join again in Ts or Ct ]
__________________
THC is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-05-2011 , 11:53   Re: I look for a csdm fix respawn
Reply With Quote #2

Try this :

PHP Code:
/*    Formatright © 2010, ConnorMcLeod

    This plugin 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 this plugin; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#include <csdm>

#define VERSION "0.0.1"
#define PLUGIN "Csdm ChooseTeam"

const XO_PLAYER 5
const m_iTeam 114
const m_iMenuShown 125
const m_fHasChangedTeamThisRound = (1<<8)
const 
m_iMenuCode 205

#define cs_get_user_team_index(%0)    get_pdata_int(%0, m_iTeam, XO_PLAYER)
#define cs_get_user_menu(%0)        get_pdata_int(%0, m_iMenuCode, XO_PLAYER)
#define cs_set_user_menu(%0,%1)        set_pdata_int(%0, m_iMenuCode, %1, XO_PLAYER)

const Menu_TeamSelect 1
const Menu_ChooseAppearance 3

enum 
TEAM_UNASSIGNEDTEAM_TERRORISTTEAM_CTTEAM_SPECTATOR }

const 
CHOOSETEAM_KEYS MENU_KEY_1 MENU_KEY_2 MENU_KEY_5 MENU_KEY_6 MENU_KEY_0

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_clcmd("chooseteam""ClCmd_ChooseTeam")
    
register_clcmd("menuselect""ClCmd_MenuSelect")
    
register_event("TextMsg""Event_TextMsg_Too_Many""b""1=4""2&#Too_Many_")
}

public 
Event_TextMsg_Too_Manyid )
{
    
engclient_cmd(id"jointeam""5")
}

public 
ClCmd_ChooseTeamid )
{
    new 
iMenu cs_get_user_menu(id)
    if( 
iMenu != Menu_ChooseAppearance && (iMenu != Menu_TeamSelect || !(TEAM_UNASSIGNED cs_get_user_team_index(id) < TEAM_SPECTATOR))  )
    {
        
show_menu(idCHOOSETEAM_KEYS"#IG_Team_Select_Spect")
        
cs_set_user_menu(idMenu_TeamSelect)
    }
    return 
PLUGIN_HANDLED
}

public 
ClCmd_MenuSelectid )
{
    switch( 
cs_get_user_menu(id) )
    {
        case 
Menu_TeamSelect:
        {
            new 
szKey[3]
            if( 
read_argv(1szKeycharsmax(szKey)) == )
            {
                switch( 
szKey[0] - '0' )
                {
                    case 
1,2,5:
                    {
                        if( !
is_user_alive(id) )
                        {
                            new 
iMenuShown get_pdata_int(idm_iMenuShownXO_PLAYER)
                            if( 
iMenuShown m_fHasChangedTeamThisRound )
                            {
                                
set_pdata_int(idm_iMenuShowniMenuShown & ~m_fHasChangedTeamThisRoundXO_PLAYER)
                            }
                        }
                    }
                    case 
6:
                    {
                        if( 
is_user_alive(id) )
                        {
                            
set_pev(idpev_deadflagDEAD_DEAD)
                        }
                    }
                }
            }
        }
        case 
Menu_ChooseAppearance:
        {
            
engclient_cmd(id"joinclass""2")
            
csdm_respawn(id)
            return 
PLUGIN_HANDLED
        
}
    }
    return 
PLUGIN_CONTINUE

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
THC
Member
Join Date: May 2009
Old 11-05-2011 , 17:10   Re: I look for a csdm fix respawn
Reply With Quote #3

thanks i will try this plugin i hope is work .
Edit.
the plugin just stop my server with this error :
Z_GetSpace: overflow on netchan->message
11/05/2011 - 21:10:21: [AMXX] Run time error 3 (plugin "Choosteam.amxx") - debug not enabled!
11/05/2011 - 21:10:21: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
SZ_GetSpace: overflow on Breezar
SZ_GetSpace: overflow on netchan->message
FATA ERROR (shutting down): SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
__________________

Last edited by THC; 11-05-2011 at 17:22.
THC is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-06-2011 , 04:29   Re: I look for a csdm fix respawn
Reply With Quote #4

I'm runing it without any problem.

Quote:
Originally Posted by 193.33.186.119:27015 Death-Match.POW3RFUL.COM-l-BY THC-WWW.POW3RFUL.COM
dp_version "0.9.87"
Remove dproto and make your server steam only.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-06-2011 at 04:32.
ConnorMcLeod is offline
THC
Member
Join Date: May 2009
Old 11-06-2011 , 08:46   Re: I look for a csdm fix respawn
Reply With Quote #5

hi
steam only = empty servers
non steam = no support
i run servers from 6-7 years ago i try to change to steam only but i will have empty
servers and will be no point to host them.
Just check the servers from game traker top 50 servers and see how many is steam only .
__________________
THC is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-06-2011 , 09:20   Re: I look for a csdm fix respawn
Reply With Quote #6

Quote:
Do not argue the validity of using non-steam servers.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
THC
Member
Join Date: May 2009
Old 11-06-2011 , 09:32   Re: I look for a csdm fix respawn
Reply With Quote #7

I not rely i don't care just all who think non steam = no support please
check the game traker top 50 servers or 100 to see how many non stem server from 100 i sure is 100% non stem ....
__________________
THC is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-06-2011 , 09:56   Re: I look for a csdm fix respawn
Reply With Quote #8

Who cares how many are non-steam servers, it's still illegal.

If you don't like the fact that Non-Steam servers are NOT supported here then go
somewhere else and ask for help.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 11-06-2011 at 09:57.
wickedd is offline
THC
Member
Join Date: May 2009
Old 11-06-2011 , 10:19   Re: I look for a csdm fix respawn
Reply With Quote #9

HELLO
i said i dont care about non stem are not supported don't worry i will find other plugin who work for me i don't had any other problem with others plugins .
That what i say is to face reality off non steam servers
__________________
THC 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:59.


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