Car ids problem
#17

One way to make these vehicle IDs dynamic:

pawn Код:
new HotdogStart;
new HotdogEnd;
pawn Код:
HotdogStart = AddStaticVehicle(588,-2501.4048,411.2530,27.6870,327.3975,1,1); // hotdog 81
    AddStaticVehicle(588,-2508.5381,416.9856,27.6876,328.3657,1,1); // hotdog 82
    AddStaticVehicle(588,-2491.2310,424.1345,27.6864,135.4549,1,1); // hotdog 83
    AddStaticVehicle(588,-2497.0337,429.7789,27.6885,136.9934,1,1); // hotdog 83
    AddStaticVehicle(588,-2477.7212,412.2234,27.6906,139.0038,1,1); // hotdog 84
    AddStaticVehicle(588,-2479.7639,393.9415,27.6839,322.7063,1,1); // hotdog 85
    AddStaticVehicle(588,-2497.1121,361.1898,35.0262,59.5935,1,1); // hotdog 86
    AddStaticVehicle(588,-2518.2822,346.5904,35.0273,245.1825,1,1); // hotdog 87
    AddStaticVehicle(588,-2512.6914,325.1222,35.0365,70.8284,1,1); // hotdog 88
    AddStaticVehicle(588,-2529.6628,314.1962,35.0266,252.6426,1,1); // hotdog 89
    HotdogEnd = AddStaticVehicle(588,-2508.2422,438.0712,27.0642,308.9466,1,1); // hotdog 90
pawn Код:
if((vehicleid >= HotdogStart) && (vehicleid <= HotdogEnd))
        {
            if(PlayerInfo[playerid][pJob] != HOTDOGJOB_ID)
            {
                SendClientMessage(playerid, COLOR_SYSTEM, "You're not a hotdog dealer.");
                RemoveDriverFromVehicle(playerid);
                return 1;
            }
You need to do the same with all the other vehicles that are messed up.
Reply


Messages In This Thread
Car ids problem - by Wokie - 03.08.2011, 09:34
Re: Car ids problem - by Wokie - 03.08.2011, 16:04
Re: Car ids problem - by WoodPecker - 03.08.2011, 16:05
Re: Car ids problem - by TouR - 03.08.2011, 16:06
Re: Car ids problem - by Wokie - 04.08.2011, 17:18
Re: Car ids problem - by MadeMan - 04.08.2011, 18:25
Re: Car ids problem - by Wokie - 04.08.2011, 18:51
Re: Car ids problem - by ⒹⒾⓇⒺⒸⓉⓄⓇ - 04.08.2011, 18:55
Re: Car ids problem - by Wokie - 04.08.2011, 18:57
Re: Car ids problem - by MadeMan - 04.08.2011, 19:07
Re: Car ids problem - by Wokie - 04.08.2011, 19:13
Re: Car ids problem - by MadeMan - 04.08.2011, 19:14
Re: Car ids problem - by Wokie - 04.08.2011, 19:21
Re: Car ids problem - by MadeMan - 04.08.2011, 19:24
Re: Car ids problem - by Wokie - 04.08.2011, 19:27
Re: Car ids problem - by SpankMe2 - 04.08.2011, 19:30
Re: Car ids problem - by MadeMan - 04.08.2011, 19:32
Re: Car ids problem - by Wokie - 04.08.2011, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)