[pomoc] Car lock

Započeo _HarDy_, Avgust 18, 2012, 22:11:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim : CLRP edit
Detaljan opis problema : e vako , ig kada kucam /V lock , pise da je zakljucano al svak moze uci :S
Kod:

else if(strcmp(x_nr,"lock",true) == 0)
{
    if (Carlist[playerid][Typ]!=-1)
    {
if (Carlist[playerid][Carid]!=-1)
{
if (Carlist[playerid][Lock]==0)
{
    Carlist[playerid][Lock]=1;
    SetVehicleParamsForAll(Carlist[playerid][Carid],0,1);
    SetVehicleParamsForPlayer(Carlist[playerid][Carid],playerid,0,0);
SendClientMessage(playerid, YELLOW, "* Vase vozilo je zakljucano!");
SendClientMessage(playerid, YELLOW, "* Samo vi mozete uci u njega!");
}
else
{
    Carlist[playerid][Lock]=0;
    SetVehicleParamsForAll(Carlist[playerid][Carid],0,0);
    SendClientMessage(playerid, YELLOW, "* Vase vozilo je otkljucano!");
SendClientMessage(playerid, YELLOW, "Sada svi mogu uci u njega!");
}
}
else { SendClientMessage(playerid, COLOR_GREY, "* Vase vozilo je pokvareno! Popravite ga!"); }
}
else { SendClientMessage(playerid, COLOR_GREY, "Ne posjedujes vozilo!"); }
    return 1;
}

Slika video : /
MOLIM VAS POMOCCC!!!!
Moji Radiovi!
TuT||Iz code u MTA

isti problem :S
GLADIATOR RPG MACEDONIA

Nadji gde ti se ovo nalazi
if(IsAnOwnableCar(vehicleid))
i onda samo ovo dadaj
if(IsAnOwnableCar(vehicleid))
{
    format(string,sizeof(string),"Ulazite u %s (%d)   Vlasnik: %s",vehicle, vehicleid, CarInfo[vehicleid][cOwner]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
if(CarInfo[vehicleid][cLock] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 6 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pAdmin] >= 1338)
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vozilo je zakljucano, mozete da udjete jer ste administrator na duznosti.");
}
else if((PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) && (IsPlayerInRangeOfPoint(playerid, 70,1251.7888,-1818.8201,13.4089) || CarInfo[vehicleid][cKazna] == 1))
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vozilo je zakljucano, mozete da udjete jer ste u parking servisu.");
}
else
{
SafeRemovePlayerFromVehicle(playerid);
SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
//ForbidenCar[playerid] = 9999;

SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vozilo je zakljucano.");
}
}
else if(CarInfo[vehicleid][cLock] == 0)
{
SetVehicleParamsForPlayer(vehicleid,playerid,0,0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vozilo je otkljucano, mozete pokusati da pokrenete motor.");
}
}