How can i prevent the game from spawning a person when he joins the server a second time and more in the same map?
PHP Code:
public plugin_init()
{
RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Pre", 1);
}
public client_connect(id)
{
g_iPlayed[id]++;
}
public Fwd_PlayerSpawn_Pre(id)
{
if(g_iPlayed >=2)
return PLUGIN_HANDLED;
}
will this work or do i have to silentkill the user after he spawned?
__________________