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.
__________________