PHP Code:
public event_deathmsgM()
{
new victim = read_data(2);
g_alive[victim] = false;
g_glowtask[victim] = false;
g_Player_Item_Picked[victim] = false;
ResetItems(victim);
}
PHP Code:
ResetItems(client)
{
if( pev_valid(g_ent[client]) )
{
engfunc(EngFunc_RemoveEntity, g_ent[client]);
g_ent[client] = 0;
}
set_view(client,CAMERA_NONE);
}
Since this is only used on one player, we wont need to loop the players.
__________________