Jump to content

[DELETED]Timer


Exa
 Share

Recommended Posts

Salut grup am si eu o intrebare cum as putea sa distrug doar IsActor[0] fara sa afecteze IsActor[1]?

function Timer1sec() {
    foreach(Player, playerid) {
         if(IsActor[0] == 1) {
            if(IsPlayerInRangeOfPoint(playerid,10, -372.3956,-1458.6648,25.7209)) {
                if(GetPlayerVirtualWorld(playerid) == playerid+1) {
                    new Float:playerHP, Float:PlayerAngle;
                    GetPlayerFacingAngle(playerid, PlayerAngle);
                    GetPlayerHealth(playerid, playerHP);
                    SetActorFacingAngle(MyActor[playerid], PlayerAngle + 180);
                    SetPlayerHealthEx(playerid, playerHP-10);
                }
            }
        }
         if(ISActor[1] == 1) {
            if(IsPlayerInRangeOfPoint(playerid,10, -372.3956,-1458.6648,25.7209)) {
                if(GetPlayerVirtualWorld(playerid) == playerid+1) {
                    new Float:playerHP, Float:PlayerAngle;
                    GetPlayerFacingAngle(playerid, PlayerAngle);
                    GetPlayerHealth(playerid, playerHP);
                    SetActorFacingAngle(MyActor[playerid], PlayerAngle + 180);
                    SetPlayerHealthEx(playerid, playerHP-10);
                }
            }
        }
    }
}

ca nu stiu cum sa fac ca sa distrug doar IsActor[0] fara sa afectez IsActor[1] stiu doar cum sa distrug tot timerul dar nu si pe bucati as putea sa fac 2 timere dar o sa fie lag ca vreau sa adaug mai multe in timer, mersi pentru atenti!

Sa aveti un paste fericit!

Link to comment
Share on other sites

  • Hall of Flame🔥

Topic-ul a fost șters deoarece nu ai respectat modelul de postare. Te rugăm sa revii cu alt topic in care să respecți modelul.

Topic șters!

ezgif-com-gif-maker-1-00000.png

Not So Zen SRL

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...