How to detect the back of a vehicle
#1

I want to detect the back of a vehicle so I can make a command to put the cargo inside.


This is what I have to detect the job vehicle when entering:
Код:
for(new i; i < sizeof(meatcar); i++)
    {
	    if(vehicleid == meatcar[i])
	    {
	        if(PlayerInfo[playerid][Job] == 1)
	        {
				SendClientMessage(playerid, COLOR_WHITE, "Type /delivermeat to get started.");
			}
			else
			{
			    static
			    Float:x,
			    Float:y,
			    Float:z;

				GetPlayerPos(playerid, x, y, z);
				SetPlayerPos(playerid, x, y, z + 5);
			    SendClientMessage(playerid, COLOR_GREY, "This is a job vehicle and you don't have the job.");

			}
		}
	}
Reply


Messages In This Thread
How to detect the back of a vehicle - by AndreiWow - 29.08.2016, 22:32
Re: How to detect the back of a vehicle - by AndreiWow - 29.08.2016, 23:13
Re: How to detect the back of a vehicle - by SickAttack - 29.08.2016, 23:54
Re: How to detect the back of a vehicle - by AndreiWow - 30.08.2016, 00:21
Re: How to detect the back of a vehicle - by SickAttack - 30.08.2016, 00:44
Re: How to detect the back of a vehicle - by Sew_Sumi - 30.08.2016, 02:20
Re: How to detect the back of a vehicle - by SickAttack - 30.08.2016, 02:25
Re: How to detect the back of a vehicle - by LondonRP - 30.08.2016, 03:11
Re: How to detect the back of a vehicle - by SickAttack - 30.08.2016, 03:13

Forum Jump:


Users browsing this thread: 1 Guest(s)