[Pomoc]Ubacivanje vozilo.

Započeo GBL, Mart 18, 2011, 01:07:03 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

GBL

*

Vaka ubacio sam vozilo za jednu org ali otkako sam ubacio to vozilo druge vozila koje su na prodaju ne rade.
Moze mi neko pomoci?


1.
AddStaticVehicleEx(470,-928.83110000,-546.09480000,25.95040000,3.33760000,-1,-1,15); //230
AddStaticVehicleEx(470,-932.58120000,-546.00650000,25.99430000,6.28800000,-1,-1,15); //231
AddStaticVehicleEx(470,-947.61160000,-546.29790000,25.95160000,355.88090000,-1,-1,15); //232
AddStaticVehicleEx(470,-950.65860000,-546.07070000,25.95510000,352.76000000,-1,-1,15); //233
AddStaticVehicleEx(560,-953.98210000,-491.29550000,25.66540000,267.36790000,0,0,15); //234
AddStaticVehicleEx(560,-923.06830000,-492.55900000,25.66640000,253.30330000,0,0,15); //235


2. forward IsAGangCar7(carid);

3. public IsAGangCar7(carid)
{
if(carid >= 230 && carid <= 235)//
{
return 1;
}
return 0;
}


4. if(IsAGangCar7(newcar))
{
   if(PlayerInfo[playerid][pLeader] == 13||PlayerInfo[playerid][pMember] == 13) { }
   else {
       RemovePlayerFromVehicle(playerid);
       SendClientMessage(playerid, COLOR_GREY,"Nemate kljuceve od ovog vozila.");}
}


5. Smenio 230 to 236 (zato sto sam dodao 6 vozila) i 550 to 556.
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
return 0;
}

Poslednja Izmena: Mart 18, 2011, 01:07:38 PRE PODNE od GBL


Sledeći put pročitaj pravila.