You use a wrong respawn method.
Use this instead, you don't need to give items with this method.
PHP Code:
enum _:playersTasks (+= 33)
{
TASK_PLR_RESPAWN,
// TASK_PLR_GIVEITEMS // not needed
}
public death_event()
{
if( !g_bRoundEnd && HasRespawn[id] && !respawned[id] && !is_user_alive(id) && cs_get_user_menu(id) != Menu_ChooseAppearance )
{
set_task(0.1, "player_spawn", TASK_PLR_RESPAWN + id);
// set_task(0.2, "player_giveitems", TASK_PLR_GIVEITEMS + id); // not needed
}
}
public player_spawn( id )
{
id %= 33;
if( is_user_connected(id) && !is_user_alive(id) )
{
ExecuteHamB(Ham_CS_RoundRespawn, id);
if( is_user_alive(id) )
{
respawned[id] = 1;
}
}
}
__________________