Detaljni Opis:Ovako imam gtarp mod i editujemga i sad ima neki ono kad udjes u auto koje je na prodaju udjem u auto koje je na prodaju i sad treba pise Cena model i to sad to nekad pise nekad ne pise al uvek ne pise samo kad restard srv pise a ovakonikad ne pise i sad nzm kkako da sredim to evo ovo pliz da mi neko pomogne
Deo Scripte:
if(IsAnOwnableCar(newcar))
{
if(CarInfo==0)
{
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"~w~Vozilo: %s~n~Cijena: ~g~%d~n~~w~/v buy da kupis vozilo~n~~r~/exit ~w~da napustis vozilo",CarInfo,CarInfo);
GameTextForPlayer(playerid,string,5000,5);
}
if(CarInfo==1)
{
format(string,sizeof(string),"Vlasnik vozila je %s",CarInfo);
SendClientMessage(playerid, COLOR_BLUE, string);
/*if(keycar != vehicle)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}*/
if(PlayerInfo == vehicle) { }
else if(PlayerInfo == vehicle) { }
else if(PlayerInfo == vehicle) { }
else
{
if(PlayerInfo >= 6 && AdminDuty == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Mozete voziti sada ovo auto zato sto ste admin na duznosti !");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Nemate kljuceve od ovog vozila.");
}
}
}
}
gLastCar = newcar;
gLastDriver = playerid;
}
if(newstate == PLAYER_STATE_SPAWNED)
{
new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0 && PlayerInfo == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
{
SetPlayerSpawn(playerid);
}
if(WantedPoints > 0)
{
new dstring;
new wanted = WantedPoints;
new diecash = 0;
while(WantedPoints > 0)
{
diecash += 500;
WantedPoints --;
}
format(dstring, sizeof(dstring), "Izgubili ste $%d zbog umiranja sa %d Wanted Poena/om.", diecash, wanted);
SendClientMessage(playerid, COLOR_YELLOW, dstring);
SafeJBC_GivePlayerMoney(playerid, - diecash);
PlayerInfo += 1;
}
if(PlayerOnMission > 0)
{
GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3);
PlayerOnMission = 0;
PlayerInfo = 0;
}
WantedPoints = 0;
WantedLevel = 0;
if(PlayerInfo > 0) { JBC_SetPlayerHealth(playerid, 100.0); }
else { JBC_SetPlayerHealth(playerid, 50.0+PlayerInfo); }
MedicBill = 1;
TelePos = 0.0;
TelePos = 0.0;
gPlayerSpawned = 1;
SafeTime = 60;
}
return 1;
} Slika:
