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
Jer ti radi sa caps lockom?
nope -.- :'(
To si uzeo iz one FS ali nisi sve ubacio :D
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
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
SpeedBoostMultiplier stock za brzinu ..
Ja za ovo nisam ni znao za FS tak da necu nis mjenjat :D