Exa Posted April 19, 2020 Share Posted April 19, 2020 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 More sharing options...
Hall of Flame🔥 577777 Posted April 19, 2020 Hall of Flame🔥 Share Posted April 19, 2020 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! Not So Zen SRL Link to comment Share on other sites More sharing options...
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