bus mission start and checkpoint help
#7

Make a variable like this:
Код:
IsBusJob[MAX_PLAYERS];
Then on OnPlayerKeyStateChange:

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (newkeys==KEY_SUBMISSION && IsBusJob[playerid] == 0 && veh == bus1) // checks if Submission key is pressed + if the player is already working + that the player is in a bus
	{
	  SendClientMessage(playerid, green, "You started working for the bus company!"); // SCM only one time cause the variable under here.
	  IsBusJob[playerid] = 1; // here's the variable set to 1, this will prevent the player from starting working over again.
	}
- It's not a full code, it is for you so you can read and understand it then go ahead and code it yourself!
Reply


Messages In This Thread
bus mission start and checkpoint help - by Kar - 21.06.2010, 03:35
Re: bus mission start and checkpoint help - by mprofitt - 21.06.2010, 03:37
Re: bus mission start and checkpoint help - by Kar - 21.06.2010, 03:48
Re: bus mission start and checkpoint help - by ToPhrESH - 21.06.2010, 04:13
Re: bus mission start and checkpoint help - by Kar - 21.06.2010, 04:14
Re: bus mission start and checkpoint help - by ledzep - 21.06.2010, 05:47
Re: bus mission start and checkpoint help - by Cameltoe - 21.06.2010, 05:56
Re: bus mission start and checkpoint help - by Kar - 21.06.2010, 10:18
Re: bus mission start and checkpoint help - by Cameltoe - 21.06.2010, 10:56
Re: bus mission start and checkpoint help - by Kar - 21.06.2010, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)