Ubrzanje

Započeo [OG]Foley
18. Maj 2010. Zaključano
1,266
pregleda
8
postova
Alen_Sudec
4
Shot Caller
18. Maj 2010.
Kako da napravim ubrzanje, vrstu ubrzanja kad si u autu nesto slicno ovome

if (strcmp(cmd, "/speedboost", true) == 0 || strcmp(cmd, "/sb", true) == 0)
  {
    // Create string variables
    new strBoostMultiplier;
    new strTempString;

// Get the vaue typed
      strBoostMultiplier = strtok(cmdtext, idx);

      // Check a boost factor was supplied
      if (!strlen(strBoostMultiplier))
      {
          // Send message and exit here
        SendClientMessage(playerid, COLOR_YELLOW, "** Koriscenje: /sb ");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Uvek mozes da stavis super ubrzanje pritiskajuci sirenu.");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Super ubrzanje je napravio Swat001");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Komanda za super ubrzanje je: /sb");
        format(strTempString,sizeof(strTempString), "*  Tvoja brzina super ubrzanja je: %0.2f", SpeedBoostMultiplier);
        SendClientMessage(playerid, COLOR_YELLOW, strTempString);
        return 1;
      }

      // Check the boost factor supplied is numeric
        if (!IsNumeric2(strBoostMultiplier))
      {
          // Send message and exit here
        SendClientMessage(playerid, COLOR_YELLOW, "** Koriscenje: /sb ");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Uvek mozes da stavis super ubrzanje pritiskajuci sirenu.");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Super ubrzanje je napravio Swat001");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Komanda za super ubrzanje je: /sb");
        format(strTempString,sizeof(strTempString), "*  Tvoja brzina super ubrzanja je: %0.2f", SpeedBoostMultiplier);
        SendClientMessage(playerid, COLOR_YELLOW, strTempString);
      }

      // Convert to float
        new Float:BoostMultiplier = floatstr(strBoostMultiplier);

        // Check speed boost multiplier is not too high or low
if (BoostMultiplier < 1.0 || BoostMultiplier > 3.0)
        {
          // Send message and exit here
        SendClientMessage(playerid, COLOR_YELLOW, "* Izvanjavamo se ali  moras da stavis ubrzanje izmenju 1.0 i 3.0");
        return 1;
      }

      // Store the new speed boost multiplier value for the player
      SpeedBoostMultiplier = BoostMultiplier;

      // Format and send message
format(strTempString,sizeof(strTempString), "* Tvoje super ubrzanje je stavljeno na %0.2f", SpeedBoostMultiplier);
        SendClientMessage(playerid, COLOR_YELLOW, strTempString);

      // Exit here
      return 1;

Ali mi ova komanda neradi, mislim sve compilram lijepo i upisem /sb 3.0 i pise da je ubrzanje stavljeno na 3.0 ali nista nije ubrzano
Deleted User
Obrisan korisnik
19. Maj 2010.
Jer ti radi sa caps lockom?
Alen_Sudec
4
Shot Caller
19. Maj 2010.
nope -.-  😢
GGC
5
Godfather
19. Maj 2010.
To si uzeo iz one FS ali nisi sve ubacio 😄
Alen_Sudec
4
Shot Caller
19. Maj 2010.
ne nisam iz one FS neznam o kojo pricas al dobro
ja sam to iz GM Stunt SRbija tak nes
dodo sam gore new ..... vec sta ide neznam napamet al sam kopiro
GGC
5
Godfather
19. Maj 2010.
O ovom pricam

http://forum.sa-mp.com/index.php?topic=119977.0

skini to pa ubaci sve ponovo
Deleted User
Obrisan korisnik
19. Maj 2010.
SpeedBoostMultiplier stock za brzinu ..
Alen_Sudec
4
Shot Caller
19. Maj 2010.
Ja za ovo nisam ni znao za FS tak da necu nis mjenjat 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha