- 0
Problema
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 263 views
-
- 1 reply
- 179 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 158 views
-
- 1 answer
- 312 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.