Raised This Month: $51 Target: $400
 12% 

knife slows & q about set_task


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 05-29-2008 , 09:49   knife slows & q about set_task
Reply With Quote #1

i've set dmg from knife to 0 with hamsandwich but when im hitting an enemy with it i make him slow for a small peroid of time, he makes me it too
then how to block a hit in a target and not only dmg made to him ?

and a question, when we have task loop set_task(1.0, "public", taskid,_,_,"b") how to put here 'id' to dont remove taskid, cause i can make set_task(1.0, "public, id, _, _, "b") but i need taskid and id
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 05-29-2008 , 15:10   Re: knife slows & q about set_task
Reply With Quote #2

Quote:
Originally Posted by Salamon View Post
when we have task loop set_task(1.0, "public", taskid,_,_,"b") how to put here 'id' to dont remove taskid, cause i can make set_task(1.0, "public, id, _, _, "b") but i need taskid and id
Make the taskid a number+playerid. Then in the task itself, subtract the number back out for the playerid

Code:
public whatever(id) {
    set_task(1.0, "your_task", 100 + id)
}
 
public your_task(taskid) {
    new playerid = taskid - 100
}
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode