Skip to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Countdown

hallo

ik heb echt overal lopen zoeken naar gewoon een normale countdown maar ze zaten altijd verwerkt in andere scripts enz.

ik wil gewoon een countdown met 4 seconden. dan telt hij af : 3, 2, 1, launch!

bij de eerste seconde (3 in countdown) word de speler bevroren, bij de 2e seconde (2 in countdown) word de speler goed geplaatst, dan heb je de derde seconde waar nix gebeurt en bij de vierde (launch in countdown) krijgt hij vehiclevelocity.

ik weet verder hoe alles ertussen moet (toggleplayercontrollable enz.) maar ik heb geen idee hoe je zo'n countdown maakt.

heel erg bedankt.

Featured Replies

Ik denk dat dit wel werkt. Voor een per-player countdown moet je het iets anders aanpakken.

// Bovenaan
forward Countdown();

new 
   count = 4,
   ctimer,
   cstring[6];

// /countdown cmd o.i.d. ..
ctimer = SetTimer("Countdown", 1000, true);

// Countdown functie
Countdown()
{
   count--;
   switch(count)
   {
       case -1: { KillTimer(ctimer); count = 4; } // stop de timer en reset de countdown
       case 0: GameTextForAll("~g~Launch!", 1000, 5);
       default: 
       {
           format(cstring, sizeof(cstring), "~r~%d", count);
           GameTextForAll(cstring, 1000, 5);
       }
   }
   return count;
}

  • Author

ok maar ik wil dus als een speler in een checkpoint gaat word hij bij 3 bevroren (togleplayecontrollable) bij 2 word hij goed neergezet (SetVehiclePos) dan heb je 1, en bij launch word de speler geunfreezed en dan schiet hij af (setvehiclevelocity)

waar moet ik die dingen dan ertussen zetten

en het kan alleen als een speler in een voertuig is

(sorry voor de ontbrekende info bij eerste post) :Y

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.