Raised This Month: $ Target: $400
 0% 

FM_Touch ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-19-2007 , 02:13   Re: FM_Touch ?
Reply With Quote #9

Quote:
Originally Posted by bwgrubbs1 View Post
Works...BUT...doesn't call the function every 2 seconds.

I get this in console.


Debug: Adding 2 hp. Current HP = 81
Debug: Adding 2 hp. Current HP = 83
Debug: Adding 2 hp. Current HP = 85
Debug: Adding 2 hp. Current HP = 87
Debug: Adding 2 hp. Current HP = 89
Debug: Adding 2 hp. Current HP = 91
Debug: Adding 2 hp. Current HP = 93
Debug: Adding 2 hp. Current HP = 95
Debug: Adding 2 hp. Current HP = 97
Debug: Setting user hp to 100

REAL FAST...but it does take 2 second to start.
change
Code:
if(equali(szClassname, "healer"))
to
Code:
if(equali(szClassname, "healer") && !task_exists(id))

Quote:
Originally Posted by bwgrubbs1 View Post
ALSO. If you die, and you land on the block it does this...


Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
Debug: Adding 2 hp. Current HP = -122
...SPAMS THIS HARD CORE...until this

Debug: Adding 2 hp. Current HP = 1
Debug: Adding 2 hp. Current HP = 3
Debug: Adding 2 hp. Current HP = 5
Debug: Adding 2 hp. Current HP = 7
Debug: Adding 2 hp. Current HP = 9
...
Debug: Adding 2 hp. Current HP = 99
Debug: Setting user hp to 100
Add
Code:
if(!is_user_alive(id)) {     remove_task(id)     return PLUGIN_CONTINUE }
to give_health()
Deviance is offline
 



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 10:42.


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