Detaljan opis problema:tuniramo auto izadjemo iz auta i zatim udjemo u auto i tune nastane
Dio skripte:
CMD KODE:
if(strcmp(cmdtext, "/tunecar", true) == 0)
{
if(TunecarTime == 1) return SCM(playerid, COLOR_GREY, "Vec ste iskoristili tu komandu , sacekajte malo !");
if(WantedPoints <= 1 || WantedLevel <= 1 || BankaWL <= 1)
{
if(PlayerInfo >= 1 || PlayerInfo >= 1 || PlayerInfo >= 1 || PlayerInfo >= 1 || PlayerInfo >= 1)
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
ModCar(playerid);
TunecarTime = 1;
SetTimerEx("TunecarTimer", 3, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_RED, ": Morate biti u vozilu.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi VIP,OSC,Helper,Mapper.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "ne mozete to da koristite imate wanted.");
}
return 1;
}PUBLIC KODE
public TunecarTimer(playerid)
{
if(IsPlayerConnected(playerid))
{
if(TunecarTime == 1)
{
TunecarTime = 0;
}
}
}