When user gets infected, use this:
PHP Code:
#define m_flNextMapZoneTime 233
#define m_fClientMapZone 235
stock UpdatePlayerMapZones(iId)
{
// Make PreThink call CBasePlayer::HandleSignals at the next frame
set_pdata_float(iId, m_flNextMapZoneTime, 0.0)
// Clear mask from all MapZones, this will check it's specific huds
// In this case we will clear the related StatusIcon message for "buyzone"
set_pdata_int(iId, m_fClientMapZone, 0)
}
tip: Make sure you call this on infection, and disinfection, since a player can be disinfected while on buyzone and the same behavior will occur.
2 native calls v/s a lot of message related natives, wonderful
__________________