Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [OG]Foley poslato Maj 18, 2010, 23:10:36 POSLE PODNE

Naslov: Ubrzanje
Poruka od: [OG]Foley poslato Maj 18, 2010, 23:10:36 POSLE PODNE
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[256];
    new strTempString[256];

// 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 <SpeedBoostMultiplier>");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Uvek mozes da stavis super ubrzanje pritiskajuci sirenu.");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Super ubrzanje je napravio [HEAD]Swat001");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Komanda za super ubrzanje je: /sb");
        format(strTempString,sizeof(strTempString), "*  Tvoja brzina super ubrzanja je: %0.2f", SpeedBoostMultiplier[playerid]);
        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 <SpeedBoostMultiplier>");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Uvek mozes da stavis super ubrzanje pritiskajuci sirenu.");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Super ubrzanje je napravio [HEAD]Swat001");
        SendClientMessage(playerid, COLOR_YELLOW, "*  Komanda za super ubrzanje je: /sb");
        format(strTempString,sizeof(strTempString), "*  Tvoja brzina super ubrzanja je: %0.2f", SpeedBoostMultiplier[playerid]);
        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[playerid] = BoostMultiplier;

      // Format and send message
format(strTempString,sizeof(strTempString), "* Tvoje super ubrzanje je stavljeno na %0.2f", SpeedBoostMultiplier[playerid]);
        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
Naslov: Odg: Ubrzanje
Poruka od: iYoko poslato Maj 19, 2010, 06:20:36 PRE PODNE
Jer ti radi sa caps lockom?
Naslov: Odg: Ubrzanje
Poruka od: [OG]Foley poslato Maj 19, 2010, 14:00:26 POSLE PODNE
nope -.-  :'(
Naslov: Odg: Ubrzanje
Poruka od: LuKsA poslato Maj 19, 2010, 14:51:07 POSLE PODNE
To si uzeo iz one FS ali nisi sve ubacio :D
Naslov: Odg: Ubrzanje
Poruka od: [OG]Foley poslato Maj 19, 2010, 14:56:21 POSLE PODNE
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
Naslov: Odg: Ubrzanje
Poruka od: LuKsA poslato Maj 19, 2010, 14:57:23 POSLE PODNE
O ovom pricam

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

skini to pa ubaci sve ponovo
Naslov: Odg: Ubrzanje
Poruka od: r4z0r poslato Maj 19, 2010, 14:58:58 POSLE PODNE
 SpeedBoostMultiplier stock za brzinu ..
Naslov: Odg: Ubrzanje
Poruka od: [OG]Foley poslato Maj 19, 2010, 15:47:23 POSLE PODNE
Ja za ovo nisam ni znao za FS tak da necu nis mjenjat :D