17.03.2011, 18:46
Hello all. When i add car only for one faction/gang cars which is for buying (/v buy) some of them is not for buying some is ... Whats the problem?
1.
2.
3.
4.
5. Changing 230 to 236 (because i add 6 cars) and changing 550 to 556.
1.
pawn Код:
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
pawn Код:
forward IsAGangCar7(carid);
pawn Код:
public IsAGangCar7(carid)
{
if(carid >= 230 && carid <= 235)//KGB
{
return 1;
}
return 0;
}
pawn Код:
if(IsAGangCar7(newcar))
{
if(PlayerInfo[playerid][pLeader] == 13||PlayerInfo[playerid][pMember] == 13) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"Nemate kljuceve od ovog vozila.");}
}
pawn Код:
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
return 0;
}