Raised This Month: $ Target: $400
 0% 

Help with a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
topline
Member
Join Date: Jul 2010
Old 08-20-2010 , 14:56   Help with a plugin
Reply With Quote #1

Guys what does this all mean??

Code:
static Float:lastTouched[33];

GetObjectProperty(ent, 1, szProperty1);
GetObjectProperty(ent, 2, szProperty2);
new Float:fHeal = str_to_float(szProperty1);
new Float:fInterval = str_to_float(szProperty2);

if ( get_gametime() - lastTouched[plr] > fInterval )
{
new Float:health;
pev(plr, pev_health, health);
if ( health + fHeal < 100.0 )
{
set_pev(plr, pev_health, health + fHeal);
}
else
{
set_pev(plr, pev_health, 100.0);
}

lastTouched[plr] = get_gametime();
}
}
topline is offline
Send a message via MSN to topline Send a message via Skype™ to topline
Rhyme
Member
Join Date: Aug 2010
Location: Russia (Moscow)
Old 08-20-2010 , 16:07   Re: Help with a plugin
Reply With Quote #2

respawn player with 100 hp on gametime
Rhyme is offline
Send a message via ICQ to Rhyme Send a message via Skype™ to Rhyme
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-20-2010 , 21:13   Re: Help with a plugin
Reply With Quote #3

It doesn't mean anyting as you have it posted there. You have to show the whole code. (if it's really big then attach the .sma).
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 21:58.


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