Jump to content
  • 0

Timer


Guest Alxxie

Question

Cum fac ca atunci cand am setat un timer si scriu o comanda, sa-mi arate cat timp mai are pana termina timerul? ::)

Sa va dau un exemplu:

La scripturile de admin:Daca esti bagat la jail si scrii o comanda, iti spune cat timp mai ai de stat la jail pana iesi.

Vreau si eu sa fac ceva de genul asta.Cum se face :D?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Shad0wdpbgd
      Salut, am o problema.. nu se updateaza timer-ul la secunda, am pus acolo langa ora si secundele, dar nu se updateaza la secunda, se updateaza doar la minut, si nu stiu ce are. Daca ma poate ajuta cineva, va rog.
          gettime(hour,minn,sec);
          gettime(tmphour, tmpminute, tmpsecond);
          getdate(Year, Month, Day);    
          new datestr[128], timestr[32];
          format(datestr,128,"%02d.%02d.%d", Day, Month, Year);
          format(timestr,32,"~w~%02d:%02d:%02d",tmphour,tmpminute,tmpsecond);
          TextDrawSetString(txtTimeDisp,timestr);
          TextDrawSetString(txtDateDisp,datestr);
       
    • By 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!
    • By nQeed
      Errori :
      E:\gm burned edit ionut\gamemodes\gmm.pwn(4839) : error 010: invalid function or declaration
      E:\gm burned edit ionut\gamemodes\gmm.pwn(4840) : error 010: invalid function or declaration
      E:\gm burned edit ionut\gamemodes\gmm.pwn(4841) : error 010: invalid function or declaration
      Cod :
      task VehicleSpeedTimer[300]() {
          foreach(new i : IsSpeed) GiveVehicleSpeed(i);
          return true;
      }
      Va rog sa ma ajutati , chiar nu am idee.
      Gamemode : Cosminak47 burned
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

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.