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

[CSDM] Disable the "one team joining peer round"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-02-2006 , 07:34   [CSDM] Disable the "one team joining peer round"
Reply With Quote #1

Hey guys,

Everyone know the problem with csdm when someone cheat and you want to make a demo but you can't join the spectator without reconnect to the server. Also I need a plugin who admins can join a team or the spectator more than ones a round. I hope someone can make it.
__________________
DA is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-02-2006 , 12:56   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #2

Code:
/**  * csdm_main.sma  * Allows for Counter-Strike to be played as DeathMatch.  *  * CSDM Main - Main plugin to communicate with module  *  * (C)2003-2006 David "BAILOPAN" Anderson  *  *  Give credit where due.  *  Share the source - it sets you free  *  <a href="http://www.opensource.org/" target="_blank" rel="nofollow noopener">http://www.opensource.org/</a>  *  <a href="http://www.gnu.org/" target="_blank" rel="nofollow noopener">http://www.gnu.org/</a>  */ #include <amxmodx> #include <amxmisc> #include <csdm> new bool:g_StopRespawn[33] public csdm_Init(const version[]) {     if (version[0] == 0)     {         set_fail_state("CSDM failed to load.")         return     } } public plugin_init() {     register_plugin("CDSM Stop Respawn", "1.0", "teame06")     register_clcmd("amx_respawn", "restore_respawn", ADMIN_LEVEL_G, "Stop/Restore Spawns") } public csdm_PostDeath(killer, victim, headshot, const weapon[]) {     if(g_StopRespawn[victim])         return PLUGIN_HANDLED     return PLUGIN_CONTINUE } public restore_respawn(id,lvl,cid) {     if(!cmd_access(id,lvl,cid,1))         return PLUGIN_HANDLED     new teamid = get_user_team(id)     if(teamid == _TEAM_T || teamid == _TEAM_CT)     {         if(g_StopRespawn[id])         {             g_StopRespawn[id] = false             csdm_respawn(id)             console_print(id, "Spawning is re-enable")             return PLUGIN_HANDLED         }         else         {             g_StopRespawn[id] = true             user_silentkill(id)             console_print(id, "Stop re-spawning")             return PLUGIN_HANDLED         }     }     return PLUGIN_CONTINUE } public client_connect(id) {     g_StopRespawn[id] = false }

This is a script I made along time ago. This will allow your admin to spectate while still in a team. All it does it stop your respawn and kill the admin so he can spectate.
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 10-02-2006 at 13:06.
teame06 is offline
Send a message via AIM to teame06
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-02-2006 , 14:25   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #3

A question. Is it the csdm_main plugin?
Also must I overwrite the csdm_main plugin?
__________________
DA is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-02-2006 , 14:49   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #4

It just another addon plugin for CSDM. You can name the file what ever you want. I just called it csdm_stop_respawn.sma
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-02-2006 , 15:42   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #5

hmm. Thats really nice. But there is a bug. When I write amx_respawn in the console then I don't respawn. That's right. Okay. Then I want to play further and I write in the chat respawn. Okay. Then I respawn and I get killed. But then I must write again respawn. And then I killed again. And I must again write respawn in the console. You know what I mean? ;)
Can you fix it for me please?
__________________
DA is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-02-2006 , 15:59   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #6

You need to type amx_respawn again to enable your respawn again and it will force respawn you. This plugin wasn't design for you to type /respawn in chat.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-02-2006 , 16:59   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #7

Oh. Thanks. Working great.
+ Karma
__________________
DA is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-19-2006 , 14:35   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #8

Hey,

Sorry for pushing up this thread but I need your help.
I want that everyone on the server can use this function.
I have try myself to change the plugin but it works not.
Here is my script:

Code:
/**  * csdm_main.sma  * Allows for Counter-Strike to be played as DeathMatch.  *  * CSDM Main - Main plugin to communicate with module  *  * (C)2003-2006 David "BAILOPAN" Anderson  *  *  Give credit where due.  *  Share the source - it sets you free  *  <a href="http://www.opensource.org/" target="_blank">http://www.opensource.org/</a>  *  <a href="http://www.gnu.org/" target="_blank">http://www.gnu.org/</a>  */ #include <amxmodx> #include <amxmisc> #include <csdm> new bool:g_StopRespawn[33] public csdm_Init(const version[]) {     if (version[0] == 0)     {         set_fail_state("CSDM failed to load.")         return     } } public plugin_init() {     register_plugin("CDSM Stop Respawn", "1.0", "teame06")     register_clcmd("say", "HandleSay") } public csdm_PostDeath(killer, victim, headshot, const weapon[]) {     if(g_StopRespawn[victim])         return PLUGIN_HANDLED     return PLUGIN_CONTINUE } public HandleSay(id,lvl,cid) {     new Speech[192];     read_args(Speech,192);     remove_quotes(Speech);         if(equali(Speech,"stoprespawn"))     {     new teamid = get_user_team(id)     if(teamid == _TEAM_T || teamid == _TEAM_CT)     {         if(g_StopRespawn[id])         {             g_StopRespawn[id] = false             csdm_respawn(id)             console_print(id, "Spawning is re-enable")             return PLUGIN_HANDLED         }             else             {             g_StopRespawn[id] = true             user_silentkill(id)             console_print(id, "Stop re-spawning")             return PLUGIN_HANDLED             }     }     } return PLUGIN_CONTINUE }

It works but sometimes when players connect the command is autmaticle on.
I hope you can help me.
__________________
DA is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-19-2006 , 14:46   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #9

Re-Add this code below. You didn't copy it from my script above. So you left it out.

Code:
public client_connect(id) {     g_StopRespawn[id] = false; }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 10-19-2006 , 15:47   Re: [CSDM] Disable the "one team joining peer round"
Reply With Quote #10

ahh. Thanks. I test it out.
__________________
DA 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 14:11.


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