- 0
Problema
-
Similar Content
-
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]);
}
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now