Skripta koju koristim: RP
Detaljan opis problema: Kada napisem /rentcar ili /rentmoto nece da se renta motor niti auto. Znaci ja napisem /rentmoto i nista se ne dogadja Ne pise Nepostojeca Komanda nista. Molim pomoc hitno
Dio skripte:/ if(strcmp(cmd, "/rentcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
if (GetPlayerMoney(playerid) < 250)
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemate toliko novca !");
return 1;
}
if(HireCar != 299)
{
gCarLock[HireCar] = 0;
UnLockCar(HireCar);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/camac !");
return 1;
}
foreach (Player, i)
{
if(HireCar == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Neko je vec iznajmio ovaj auto !");
return 1;
}
}
if(PlayerInfo == 1)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
GivePlayerCash(playerid,-250);
SBizzInfo += 250;
ExtortionSBiz(15, SBizzInfo);
SBizzInfo--;
HireCar = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Iznajmili ste vozilo sada samo vi mozete voziti ovo vozilo.",hirefee);
SendClientMessage(playerid, YELLOW, string);
SendClientMessage(playerid, COLOR_YELLOW2, "Sada mozete upaliti motor !");
gEngine = 0;
engineOn[GetPlayerVehicleID(playerid)] = false;
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}
if(strcmp(cmd, "/rentmoto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerVehicleID(playerid) >= 186 && GetPlayerVehicleID(playerid) <= 210)
{
new hirefee = HireCost(GetPlayerVehicleID(playerid));
if(SBizzInfo == 0)
{
GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
return 1;
}
if(PlayerInfo == 0)
{
GameTextForPlayer(playerid, "~w~No charge for the boss", 5000, 3);
TogglePlayerControllable(playerid, 1);
return 1;
}
if (GetPlayerMoney(playerid) < SBizzInfo)
{
SendClientMessage(playerid, COLOR_GRAD2, "Nemate dovoljno novca !");
return 1;
}
if(HireCar != 299)
{
gCarLock[HireCar] = 0;
UnLockCar(HireCar);
SendClientMessage(playerid, COLOR_GREY, "Morate prvo da vratite iznajmljeni auto/motor/brod !");
return 1;
}
foreach (Player, i)
{
if(HireCar == GetPlayerVehicleID(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Neko je vec iznajmio ovaj motor !");
return 1;
}
}
GivePlayerCash(playerid,-SBizzInfo);
SBizzInfo += SBizzInfo;
ExtortionSBiz(0, SBizzInfo);
SBizzInfo--;
HireCar = GetPlayerVehicleID(playerid);
OnPropUpdate();
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Iznajmili ste vozilo sada samo vi mozete voziti ovo vozilo.",hirefee);
SendClientMessage(playerid, BELA, string);
TogglePlayerControllable(playerid, 1);
gEngine[GetPlayerVehicleID(playerid)] = 1;
GameTextForPlayer(playerid, string, 5000, 3);
}
}
return 1;
}
Tu su komande kada napisem /rentmoto ili /rentcar nista se ne dogadja niti pise Nepostojeca komanda nista
Neke slike/video za lakse dobivanje pomoci(neobavezno):/
Zaključano
[pomoc] /rentmoto /rentcar
746
pregleda
6
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
pre 14 godina
pre 14 godina
Provjeri id-ove auta,pa ih tu namjesti u skripti,ovo je Raven's jel da?
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
Tu te id-ove namjesti pogledaj in-game koji su pa tu to rijesi,tu ti je problem
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
Tu te id-ove namjesti pogledaj in-game koji su pa tu to rijesi,tu ti je problem
pre 13 godina
Kao sto ti kaze 4men , odes ingame i ako imas komandu /gotocar ID i /dl pregledas vozila koji imaju id postavis
Ovde
Na 161 broj prvog vozila na 185 broj poslednjeg ...
Ovde
if(GetPlayerVehicleID(playerid) >= 161 && GetPlayerVehicleID(playerid) <= 185)
Na 161 broj prvog vozila na 185 broj poslednjeg ...
pre 13 godina
Kako mogu saznati idove auta nekih npr..jer imam i ja isti ovaj problem pa nemogu rentati auto motor...ja bih vas zamolio da mi kazete..
a kad ocu da idem /oldcar pise mi da je kao 0 :S
moze li se kako saznati molim vas..jer su mi pomijesani idovi za motore i auta
EDIT:
Popravio ne treba pomagati 😉
a kad ocu da idem /oldcar pise mi da je kao 0 :S
moze li se kako saznati molim vas..jer su mi pomijesani idovi za motore i auta
EDIT:
Popravio ne treba pomagati 😉
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava