29.08.2016, 22:32
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:
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.");
}
}
}


