- 0
Problema
-
Similar Content
-
- 2 replies
- 76 views
-
- 7 answers
- 584 views
-
- 2 answers
- 113 views
-
- 2 answers
- 155 views
-
- 3 answers
- 148 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Exaton
Salut grup am si eu o problema am facut un actor ca cand ajunge la hp 0 sa dispara el in sine ajunge la hp 0 dar nu mai dispare stie cineva ce are?
new Float: ActorHP[MAX_PLAYERS];
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart) {
GetActorHealth(MyActor[playerid], ActorHP[playerid]);
if(damaged_actorid == MyActor[playerid]) {
SetActorHealth(MyActor[playerid], ActorHP[playerid]-7);
}
if(ActorHP[playerid] <= 0) {
DestroyActor(MyActor[playerid]);
}
return 1;
}
cand ajunge la hp 0 nu vrea sa execute aceasta functie stie cineva de ce?
if(ActorHP[playerid] <= 0) {
DestroyActor(MyActor[playerid]);
}
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.