24.09.2017, 14:09
So, I'm just revising over several thing and testing a few things out. I'm just wondering how this can be changed around, as I'm actually stuck.
The problem is this:
Everytime I spawn the NPC, it works fine, it spawns +1 each time. Which is what I want, but here:
is where the problem occurs, it's only applying it to one of the actors at time. Obviously, I must change the
around in order to figure away around this. Any ideas?
PHP код:
new Actor;
PHP код:
CMD:npc(playerid, params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
Actor = CreateActor(21, X, Y, Z+2, 90.0);
SetActorInvulnerable(Actor, false);
SetActorHealth(Actor, 100);
return 1;
}
PHP код:
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
ApplyActorAnimation(Actor, "WUZI", "CS_DEAD_GUY", 4.1, 0, 0, 0, 0, 0);
return 1;
}
PHP код:
new Actor;