Quote:
Originally Posted by iNdio
- Entire plugin was colored.
- Added respawn on warm.
- Solved Spectator: Till the Random Captain will be chosen, „Players are always in game and sometimes they can't move”.
- Solved Votemap: When votemap ends plugin shows the good one voted & other 2 messages appear, then server change map to other. (non-voted).
- Before using this plugin, change the cvars in configs/amxx.cfg below!
- Only 1 unsolved thing, „Plugin called menu_display when item=MENU_EXIT”!
Everything works fine even with this error, you'll get a lot of error lines but no crash, I can solve this but will not work properly the votemap again.
So here is the last version till I solve "menu_exit", maybe never.
|
Line 4926 unreachable..
EDIT : Try this for cmdBack(id)
Code:
public cmdBack(id)
{
if(is_user_admin(id))
{
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
{
if(TerroristTeam[id] == true)
{
cs_set_user_team(id, CS_TEAM_T);
chat_color ( id, "!g%s %L", PREFIX, LANG_PLAYER,"SPEC_TT");
}
else
{
cs_set_user_team(id, CS_TEAM_CT);
chat_color ( id, "!g%s %L", PREFIX, LANG_PLAYER,"SPEC_CT");
}
ExecuteHam(Ham_CS_RoundRespawn, id);
cs_set_user_deaths(id, 0);
}
else
{
chat_color ( id, "!g%s %L", PREFIX, LANG_PLAYER,"SPEC_NON");
}
}
return PLUGIN_HANDLED;
}
__________________