Lumaktaw patungo sa pangunahing content

SetActorHealth

warning

This function was added in SA-MP 0.3.7 and will not work in earlier versions!

Description

I-set ang health ng isang actor.

NameDescription
actoridAng ID ng aktor na i-seset ang health
Float:healthAng value na i-seset ang health ng aktor.

Returns

1 - tagumpay

0 - pagkabigo (ibig sabihin, hindi nilikha ang aktor).

Examples

new gMyActor;

public OnGameModeInit()
{
gMyActor = CreateActor(179, 316.1, -134.0, 999.6, 90.0); // Actor bilang salesperson sa Ammunation
SetActorHealth(gMyActor, 100);
return 1;
}