Pizza job
#1

I want to make a pizza delivery job, but my problem is that nothing happens when I get in the car.

Here's the code:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(vehicleid == 448)
	{
	if(PlayerInfo[playerid][pJob] == 1)
	{
	SendClientMessage(playerid, COLOR_YELLOW, "--------PIZZA DELIVERY--------");
 	SendClientMessage(playerid, COLOR_ORANGE, "Your job is to deliver these pizzas");
	SendClientMessage(playerid, COLOR_ORANGE, "Your current destination is marked.");
 	SendClientMessage(playerid, COLOR_YELLOW, "--------PIZZA DELIVERY--------");
 	new rand = random(sizeof(PizzaPoint));
	SetPlayerCheckpoint(playerid, PizzaPoint[rand][0],PizzaPoint[rand][1],PizzaPoint[rand][2] , 3.0);
	}
	else
	{
	RemovePlayerFromVehicle(playerid);
	SendClientMessage(playerid, COLOR_RED, "You do not work for pizza delivery!");
	}
	}
	return 1;
}
Reply


Messages In This Thread
Pizza job - by siemka321 - 20.02.2013, 12:44
Re: Pizza job - by TrueForYourSelf - 20.02.2013, 12:47
Re: Pizza job - by siemka321 - 20.02.2013, 13:29
Re: Pizza job - by Rillsen1998 - 20.02.2013, 13:35
Re: Pizza job - by siemka321 - 20.02.2013, 13:41
Re: Pizza job - by Rillsen1998 - 20.02.2013, 14:17
Re: Pizza job - by siemka321 - 20.02.2013, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)