I'm Trying to use this code:
PHP Code:
if( get_gametime() - gSlowedTime[plr] < 3.0
&& gEntSlowed[plr] == ent )
{
set_pev(plr, pev_maxspeed, 75.0);
}
if( !task_exists(TASK_ID_MAXSPEED + plr, 0) )
{
new szEntId[5];
num_to_str(ent, szEntId, 4);
set_task(3.0, "tskMaxSpeed", TASK_ID_MAXSPEED + plr, szEntId, 4, "", 0);
}
but when the plr stwitch the weapons, the slowtime disappears
Any idea?