Thanks xero!
So you're saying something like this?
Code:
// ..
register_clcmd("+plant","doPlant")
register_clcmd("-plant","unPlant")
// ..
public doPlant(id) {
if(!task_exists(id)) {
set_task(3.0,"doPlant",id, ... ) // Hmm
}
message_begin( MSG_ONE_UNRELIABLE, 108, {0,0,0}, id )
write_byte( 3 )
write_byte( 0 )
message_end()
return PLUGIN_HANDLED
}
public unPlant(id) {
if(task_exists(id)) {
message_begin( MSG_ONE_UNRELIABLE, 108, {0,0,0}, id )
write_byte( 0 )
write_byte( 0 )
message_end()
}
return PLUGIN_HANDLED
}
__________________