Hp drain ??
#4

this should work
pawn Код:
forward EatTimer(playerid);

public OnGameModeInit()
{
    SetTimer("EatTimer",timeyouwant in miliseconds,true);
    return 1;
}

public EatTimer(playerid)
{
    new Float:health;
    GetPlayerHealth(playerid, health);
    SetPlayerHealth(playerid, health - 1.0); // you can change 1.0 to like 5.0 to lose more hp
    return 1;
}
Reply


Messages In This Thread
Hp drain ?? - by Abraham2nd - 17.10.2010, 17:50
Re: Hp drain ?? - by Nero_3D - 17.10.2010, 17:53
Re: Hp drain ?? - by Abraham2nd - 17.10.2010, 17:59
Re: Hp drain ?? - by Kitten - 17.10.2010, 18:02
Re: Hp drain ?? - by Cameltoe - 17.10.2010, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)