Help NPC
#4

Oh yes i missed that.

Set it up like this:

Код:
if(BusID[playerid] == 1)
{
    GetVehiclePos(NPCBlueBus, busx, busy, busz);
    GetVehicleZAngle(NPCBlueBus, angle);
}
else if(BusID[playerid] == 2)//change '2' to the blackbus id
{
    GetVehiclePos(NPCBlackBus, busx, busy, busz);
    GetVehicleZAngle(NPCBlackBus, angle);
}
else if(BusID[playerid] == 3)//change '3' to the blackbus id
{
    GetVehiclePos(NPCRedBus, busx, busy, busz);
    GetVehicleZAngle(NPCRedBus, angle);
}
else
{
    //it's not a black, blue or red bus
}
Will be easier to read/edit if you define the constants.

Код:
#define NPC_BLUE_BUS 1

//then you can do
if(BusID[playerid] == NPC_BLUE_BUS)
Reply


Messages In This Thread
Help NPC - by MushLand - 27.09.2015, 08:35
Re: Help NPC - by iggy1 - 27.09.2015, 08:40
Re: Help NPC - by MushLand - 27.09.2015, 09:02
Re: Help NPC - by iggy1 - 27.09.2015, 09:17
Re: Help NPC - by MushLand - 27.09.2015, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)