remove_task
Hi.If i have the task : set_task(1.0, "Playsound",victim,"",0,"b"); how i make remove_task ?
(note:Task is for victim) :P Thanks... |
Re: remove_task
Code:
If your task id is the player then you would use the player id as the taskid. If you need to remove a task from another plugin then you would need to set otherplugin to 1 otherwise leave it just use remove_task(taskid) |
Re: remove_task
Yeah...Thanks!but i want to remove it from victim! how to do this?
teame06:"If your task id is the player then you would use the player id as the taskid" what do you mean?:| dunno |
Re: remove_task
Half-Life 1 mods uses player id. Which is pass from Damage Event, DeathMsg.
If your going to set the taskid with victim. Is Victim from an event or something? Say victim is 1. Then you would use remove_task(1); If your going to remove it on round end you would need to iterate through every player checking if they are connected and remove the task. |
Re: remove_task
Oh...ok! Thanks! 1 more thing : I can execute commands on conditions like this? =>>
Code:
new health = get_user_health(victim);EDIT:no no no this is not in round start! that function "cleint_cmd(victim,"stopsound")" works on round start but not in that condition! Nwm thanks anyway :wink: |
Re: remove_task
|
| All times are GMT -4. The time now is 06:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.