If someone can help me with this plugin.
I would like the screen turns red when the round restarts.
Something like plugin OciXCrom's Rank System [XP | Levels | Ranks] when you increase a level the screen turns to green for few seconds.
Also, i would like to have this plugin colored and i will change the messeges on the chat.
Thank you,
Код за потвърждение: Избери целия код
#include < amxmodx >
#include < amxmisc >
#define MAX_COUNT 1
new g_Count;
public plugin_init ( )
{
register_plugin( "AUTO RESTART", "1.0", "daNzEt" )
register_event( "TextMsg", "event_gamecomencing", "a", "2&#Game_C" )
register_event( "HLTV", "event_newround", "a", "1=0","2=0" )
state START_FUNCTION
return PLUGIN_CONTINUE;
}
public event_gamecomencing()
{
g_Count = 0
}
public event_newround() < BLOCK_FUNCTION > { }
public event_newround() < START_FUNCTION >
{
if( g_Count++ == MAX_COUNT )
{
server_cmd( "sv_restart 2" )
set_task( 3.0, "show_messages" )
state BLOCK_FUNCTION
}
}
public show_messages()
{
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
client_print(0, print_chat, "============= LIVE =============")
}