19.04.2011, 17:42
I'd basically like someone to finish this code completely, I know I am not doing it completely right, so please help me finishing it, thanks.
Код:
#include <a_samp>
#define func
public OnPlayerSpawn(playerid)
func()
{
if(team != 2) return 1;
SetTimerEx("RegHP", 2000, true, "%i", playerid); //Should be at OnPlayerSpawn
return 1;
}
forward RegHP(playerid);
public RegHP(playerid)
{
new Float:Health;
GetPlayerHealth(playerid, Health);
if(Health < 100) //To stop regernating if the player has 100 health or more
{
SetPlayerHealth(playerid, Health+1);
}

