Problem with adding car.
#1

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.
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
2.
pawn Код:
forward IsAGangCar7(carid);
3.
pawn Код:
public IsAGangCar7(carid)
{
if(carid >= 230 && carid <= 235)//KGB
    {
        return 1;
    }
    return 0;
}
4.
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.");}
        }
5. Changing 230 to 236 (because i add 6 cars) and changing 550 to 556.
pawn Код:
public IsAnOwnableCar(vehicleid)
{
    if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
    return 0;
}
Reply


Messages In This Thread
Problem with adding car. - by GBLTeam - 17.03.2011, 18:46
Re: Problem with adding car. - by GBLTeam - 17.03.2011, 19:18
Re: Problem with adding car. - by Markx - 17.03.2011, 19:23
Re: Problem with adding car. - by GBLTeam - 17.03.2011, 20:54

Forum Jump:


Users browsing this thread: 1 Guest(s)