I have an afk manager plug-in that I tried to recompile, and I realized that the deceased players could pass on to the audience team. I think this will ruin a fair gaming experience within the game. Can anyone help me with this? I want to prevent the deceased player from passing to the spectator team.
I forgot to write this. After the player dies, he must not switch to the spectator team using the! idle command. Anyway, if I think any other plugin, it will not be passed on to the audience team.
PHP Code:
HookEvent("player_death", Event_PlayerDeath, EventHookMode_Post); //I guess we define it first.
public Action:Player_death(client, args)
{
I don't know what should be written here.
}