Quote:
Originally Posted by ConnorMcLeod
Make that command send delete_file().
|
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_logevent("roundcount", 2, "1=Round_Start")
register_logevent("roundcount1", 2, "1=Round_End")
register_clcmd("say /delete","delete")
}
new g_roundCount
public roundcount()
{
++g_roundCount
set_hudmessage(255,255,255, -1.0, 0.71, 1, 6.0, 10.0, 1.0, 0.15, 20)
show_hudmessage(0,"[ Day %d ]^n[vBullet]", g_roundCount)
new players[32], pnum, tempid;
get_players(players, pnum);
for( new i; i<pnum; i++ )
{
tempid = players[i];
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, tempid);
write_short(4096*1); // Duration
write_short(4096*2); // Hold time
write_short(4096); // Fade type
write_byte(0); // Red
write_byte(0); // Green
write_byte(0); // Blue
write_byte(255); // Alpha
message_end();
}
}
public roundcount1() {
set_hudmessage(255,255,255, -1.0, 0.71, 0, 6.0, 10.0, 1.0, 0.15, 1)
show_hudmessage(0,"[ Day %d Ended ]^n[vBullet]", g_roundCount)
}
public delete()
{
delete_file()
}
? should i put their daysviewer.amxx ?