When the plugin gets enabled, the freezetime does not work correctly.
Normally you cant move during the freezetime, but if the plugin is enabled, you can move normaly but you can't fire until the freeze time is over.
What should i put in the code to fix?
Heres the code:
Code:
public round_start(){
set_task(get_cvar_float("mp_buytime")*60.0,"buy_time_up",51)
set_cvar_num("amx_buytimeup",0)
return PLUGIN_CONTINUE
}
public new_round(id){
if(!get_cvar_num("realmod"))
return PLUGIN_CONTINUE
new i
for(i=0;i<8;i++)
playerbody[id][i]=0
playerbuy[id]=true
speedpercent[id]=100.0
onfire[id]=0
knifed[id]=0
leghits[id]=0
set_user_maxspeed(id,240.0)
return PLUGIN_CONTINUE
}
public round_end(){
remove_task(51)
return PLUGIN_CONTINUE
}
__________________