- 0
Timer
-
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 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
5 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.