OnPlayerEnter SPECIFIC/UNIQUE Vehicle
#10

Alright, let me sort this out for you..

First, You need to set a specific ID for the car, just like what a person gave you before, like..

PHP код:
arrMissionVeh[0]=CreateVehicle(5220.00.00.0,0.0, -1, -160); 
And then check if the player's vehicle is the same as this..

PHP код:
cmd:startjob(playeridparams[])
{
     new 
vehicle GetPlayerVehicleID(playerid);
     if(
vehicle != arrMissionVeh[0] && vehicle != arrMissionVeh[1] && vehicle != arrMissionVeh[3]) return SendClientMessage(playeridCOLOR_RED"You are not in job's vehicle!");
     
//Add your job code here..

Reply


Messages In This Thread
OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 08:01
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by 0xDC143CAA - 25.06.2018, 08:30
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 08:31
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by CodeStyle175 - 25.06.2018, 08:52
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Verc - 25.06.2018, 09:00
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Sew_Sumi - 25.06.2018, 09:12
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by CodeStyle175 - 25.06.2018, 09:15
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Sew_Sumi - 25.06.2018, 09:40
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by Adamoneoone - 25.06.2018, 10:09
Re: OnPlayerEnter SPECIFIC/UNIQUE Vehicle - by JasonRiggs - 25.06.2018, 10:19

Forum Jump:


Users browsing this thread: 2 Guest(s)