PHP Code:
#include <amxmodx>
new g_iHudChannel
public plugin_init()
{
register_plugin("Alive MSG", "1.0", "ReymonARG")
set_task(1.0, "ShowMsg", 54523, _, _, "b")
g_iHudChannel = CreateHudSyncObj()
}
public ShowMsg()
{
static i, iCount; iCount = 0
for( i = 1; i <= 32; i++ )
{
if( is_user_alive(i) )
{
iCount++
}
}
set_hudmessage(255, 255, 255, -1.0, 0.05, 0, 6.0, 1.0, 0.1, 0.1, -1)
ShowSyncHudMsg(0, g_iHudChannel, "Alives: %d", iCount)
}
__________________