PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "New AMXX Plugin"
#define PLUGIN_AUTHOR "SAMURAI"
#define PLUGIN_VERSION "0.1"
new bool:g_bl_Firstround = false;
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_AUTHOR, PLUGIN_VERSION);
register_event("HLTV","event_new_round","a","1=0","2=0");
}
public event_new_round()
{
if(g_bl_Firstround)
return;
static players[32],inum,i;
get_players(players,inum);
for(i = 0; i < inum; i++)
{
if(!is_user_connected(players[i]))
continue;
message_begin(MSG_ONE,get_user_msgid("ScreenFade"), {0,0,0}, players[i]);
write_short(fade_units_to_seconds(10));
write_short(fade_units_to_seconds(10));
write_short(0x0001);
write_short(0);
write_short(0);
write_short(0);
write_byte(255);
message_end();
set_hudmessage();
show_hudmessage(0,"Wait 10 seconds to start the game!");
}
g_bl_Firstround = true;
}
stock fade_units_to_seconds(num)
{
return ((1<<12) * (num));
}
Error: