lang file:
PHP Code:
SCAN_CLEAN = human
SCAN_INFECTED = zombie
SCAN_RESULTS = [ZombieMod] You are:
zm mod:
PHP Code:
public task_newround()
{
static players[32], num, i, id, newzombie
get_players(players, num, "a")
newzombie = players[_random(num)]
if(num > 2 && is_user_connected(g_zombieoftheround))
{
while(g_zombieoftheround == newzombie)
newzombie = players[_random(num)]
}
g_zombieoftheround = newzombie
for(i = 0; i < num; i++)
{
id = players[i]
ColorChat(id, RED, "%L %L", id, "^x04SCAN_RESULTS", id, g_zombieoftheround == id ? "^x03SCAN_INFECTED" : "^x04SCAN_CLEAN")
}
if(get_pcvar_num(cvar_randomspawn))
randomly_place_everyone()
}
need:
[ZombieMod] You are: human
[ZombieMod] You are: zombie