24.08.2010, 11:45
(
Последний раз редактировалось Claude; 24.08.2010 в 12:00.
)
Add at the top
Add at the pee command
This must be NOT in the pee command!
If it gives the errors:
then make it
pawn Код:
forward PeeHealth(playerid), peetimer;
pawn Код:
peetimer = SetTimerEx("PeeHealth", 1000, true, "d", playerid);
pawn Код:
public PeeHealth(playerid)
{
if(GetPlayerAnimationIndex(playerid))
{
new animlib[32];
new animname[32];
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, 32, animname, 32);
if(animlib == PAULNMAC && animname = Piss_loop)
{
new Float:oldhealth;
GetPlayerHealth(playerid, oldhealth);
if(oldhealth >= 100) return KillTimer(peetimer);
SetPlayerHealth(playerid, oldhealth+1);
return 1;
}
else KillTimer(peetimer);
}
return 1;
}
PHP код:
undefined symbol "PAULNMAC"
undefined symbol "Piss_loop"
pawn Код:
if(animlib == "PAULNMAC" && animname = "Piss_loop")