Hi everyone,
I have a problem with this plugin after update to amxmodx 1.8.2. On my old engine(5787) works perfect, but on new engine(6027) doesn't work anymore.. Small description: When a player reach 300 frags, server execute command sv_restart 1. Thank you
PHP Code:
#include < amxmodx >
#include <amxmisc>
new g_Frags;
public plugin_init( )
{
register_plugin( "Restart Frags", "1.0", "Author" );
register_event( "DeathMsg", "death_a", "a" );
g_Frags = register_cvar( "player_maxfrags", "300" );
}
public death_a( )
{
new players[32], num;
get_players(players, num);
new Frags;
for (new i=0; i<num; i++)
{
Frags = get_user_frags(players[i])
if(Frags >= get_pcvar_num(g_Frags))
{
chat_color(0, "Round will reseted in 5 seconds !")
server_cmd ("sv_restart 1");
}
}
return PLUGIN_HANDLED;
}
stock chat_color{
....
}
__________________