Raised This Month: $ Target: $400
 0% 

Hp restore bug :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edga85
BANNED
Join Date: Jan 2009
Old 10-14-2009 , 14:40   Hp restore bug :(
Reply With Quote #1

Again bug....
Code:
case 0:
{
if (iTeam == CS_TEAM_T)
{
if(is_user_alive(id))
{
new hp = get_user_health(id);
 
if(hp < 3500)
{
set_task(1.0,"gydytojas", id)
}
}
}
Code:
public gydytojas(id) {
 
new hp = get_user_health(id);
 
if(hp < 3500)
{
set_user_health(id, hp + 5);
set_task(1.0,"gydytojas", id);
}
else
{
client_print(id, print_chat, "Daugiau HP nebegausi :)", hp)
return PLUGIN_HANDLED;
}
 
return PLUGIN_CONTINUE;
}
when round ends and begins new its still restoring hp.....
edga85 is offline
Send a message via Skype™ to edga85
 



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 22:41.


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