Quote:
Originally Posted by Plug me up
great plugin, works fine, +karma
only thing i may say is that when wup time goes like "99999" new players cant join cuz they hav to wait for nextround (that is not comming =p)
|
Here i put, the player when enter is die?
PHP Code:
public TaskCheckAlive(plr)
{
if( !g_can_respawn )
{
return;
}
new CsTeams:team = cs_get_user_team(plr);
if( team == CS_TEAM_UNASSIGNED || team == CS_TEAM_SPECTATOR )
{
set_task(1.0, "TaskCheckAlive", plr);
return;
}
if( g_is_dead[plr] )
{
ExecuteHamB(Ham_CS_RoundRespawn, plr);
}
}
public client_PreThink(plr)
{
if( g_can_respawn )
{
set_task(2.0, "TaskCheckAlive", plr);
}
}
__________________