Request...
Quote:
Originally Posted by joropito
There's a bug
If someone dies and disconnects before respawn, you get in console an error because user is inexistent.
The task respawn should be removed when someone disconnects.
|
Bug...
Code:
Dropped Sickness from server
Reason: Client sent 'drop'
L 11/13/2009 - 20:22:03: [CSTRIKE] Invalid player 1
L 11/13/2009 - 20:22:03: [AMXX] Displaying debug trace (plugin "WarmUP_Mod.amxx")
L 11/13/2009 - 20:22:03: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 11/13/2009 - 20:22:03: [AMXX] [0] WarmUP_Mod.sma::cmdRespawns (line 252)
Line...
PHP Code:
if(!valids_teams(id)) {
Complete Code
Here
Try it in many ways to no avail :/...
Like...
PHP Code:
cmdRespawns(id) {
if(!is_user_connected(id))
remove_task(id+TASK_RESPAWN)
//Code
}
and...
PHP Code:
if(is_user_connected(id))
set_task(get_pcvar_float(respawndelay),"cmdRespawns",id+TASK_RESPAWN)
and the problem continues,so i request help here.
Thanks!