OnPlayerEnterAVehicle
#7

Quote:
Originally Posted by Aleksa98
Посмотреть сообщение
This only works for the first vehicle, but the second vehicle does not work
pawn Код:
admincar = AddStaticVehicle(560,1520.1329,-1622.6709,13.2541,359.9984,17,1); // Sultan 1 >>>>>>>>>>>>>>>>>
admincar = AddStaticVehicle(560,1520.7255,-1609.5054,13.2505,358.1849,17,1); // Sultan 2 >>>>>>>>>>>>>>>>>
admincar holds the vehicle id for a sultan. Change to admincar1 and admincar2 and then
pawn Код:
admincar1 = AddStaticVehicle(560,1520.1329,-1622.6709,13.2541,359.9984,17,1); // Sultan 1 >>>>>>>>>>>>>>>>>
admincar2 = AddStaticVehicle(560,1520.7255,-1609.5054,13.2505,358.1849,17,1); // Sultan 2 >>>>>>>>>>>>>>>>>
pawn Код:
if(GetPlayerVehicleID(playerid) == admincar1 || GetPlayerVehicleID(playerid) == admincar2)
Reply


Messages In This Thread
OnPlayerEnterVehicle - by Aleksa98 - 29.03.2013, 11:58
Re: OnPlayerEnterAVehicle - by sniperwars - 29.03.2013, 12:15
Re: OnPlayerEnterAVehicle - by MattyG - 29.03.2013, 12:18
Re: OnPlayerEnterAVehicle - by Konstantinos - 29.03.2013, 12:22
Re: OnPlayerEnterAVehicle - by Aleksa98 - 29.03.2013, 12:29
Re: OnPlayerEnterAVehicle - by Aleksa98 - 29.03.2013, 12:37
Re: OnPlayerEnterAVehicle - by Konstantinos - 29.03.2013, 12:46
Re: OnPlayerEnterAVehicle - by FunnyBear - 29.03.2013, 12:46
Re: OnPlayerEnterAVehicle - by Aleksa98 - 29.03.2013, 12:48

Forum Jump:


Users browsing this thread: 2 Guest(s)