[FilterScript] [FS][Job]Pilot
#5

So,found a bug.
In line 202 theres
Код:
if (GetPlayerSkin(playerid) == 179)
I used it for some tests.
Change it to
Код:
if (GetPlayerSkin(playerid) == 61)
@DauerDicht:
I`ll explain it in English, even i`m German like you.
Its an English Forum and probably some1 have got the same question ?!

First, add an i (AddStaticPickup) to show,that there is a Job to get.
Then add the Trigger (
Код:
if(strcmp(cmd, "/job", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			if(PlayerInfo[playerid][pJob] == 0)
			{
			  if (GetPlayerState(playerid) == 1 && PlayerToPoint(1.0, playerid,X,Y,Z))
				{
				  
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie kцnnen hier Pilot werden.");
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vertragslaufzeit mind. 5 Stunden.");
				  SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Mцchten sie den Job, so geben Sie /accept job ein.");
				  GettingJob[playerid] = 1;
For the next step, you need the "/duty" command to change the skin.
Код:
 else if(PlayerInfo[playerid][pJob] == 16)
			{
			  if(JobDuty[playerid] == 1)
			  {
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie ziehen ihre Uniform aus und verlassen den Dienst.");
			    JobDuty[playerid] = 0;
			    Pilots -= 1;
			  }
			  else
			  {
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie ziehen ihre Uniform an und treten in Dienst");
			    JobDuty[playerid] = 1;
					SetPlayerSkin(playerid,61); //SKin changed to be able to use the Fligt mission
					SetPlayerColor(playerid,COLOR_DARKPURPLE);
			    Pilots += 1;
			  }
Then you see
Quote:

Pilots += 1;

, but u haven`t decalred it yet,so add to the top of the Gamemode
Код:
new Pilots = 0;
That`s it :P
Reply


Messages In This Thread
[FS][Job]Pilot - by Trooper[Y] - 10.04.2009, 19:33
Re: [FS][Job]Pilot - by tom_jonez - 10.04.2009, 19:45
Re: [FS][Job]Pilot - by Trooper[Y] - 10.04.2009, 19:49
Re: [FS][Job]Pilot - by DauerDicht - 10.04.2009, 20:35
Re: [FS][Job]Pilot - by Trooper[Y] - 10.04.2009, 20:49
Re: [FS][Job]Pilot - by Trooper[Y] - 10.04.2009, 21:36
Re: [FS][Job]Pilot - by Trooper[Y] - 11.04.2009, 16:26
Re: [FS][Job]Pilot - by Master_Gangster - 11.04.2009, 16:49
Re: [FS][Job]Pilot - by Trooper[Y] - 11.04.2009, 17:12
Re: [FS][Job]Pilot - by Master_Gangster - 13.04.2009, 22:53
Re: [FS][Job]Pilot - by Trooper[Y] - 14.04.2009, 08:01
Re: [FS][Job]Pilot - by gtalover12 - 14.04.2009, 10:04
Re: [FS][Job]Pilot - by Trooper[Y] - 14.04.2009, 12:46
Re: [FS][Job]Pilot - by gtalover12 - 14.04.2009, 14:22
Re: [FS][Job]Pilot - by Trooper[Y] - 14.04.2009, 15:04
Re: [FS][Job]Pilot - by Guedes747 - 14.04.2009, 15:17
Re: [FS][Job]Pilot - by Trooper[Y] - 14.04.2009, 15:28
Re: [FS][Job]Pilot - by gtalover12 - 14.04.2009, 16:32
Re: [FS][Job]Pilot - by Guedes747 - 14.04.2009, 19:26
Re: [FS][Job]Pilot - by [4k]Wang - 15.04.2009, 03:52
Re: [FS][Job]Pilot - by gtalover12 - 15.04.2009, 16:14
Re: [FS][Job]Pilot - by Guedes747 - 15.04.2009, 21:36
Re: [FS][Job]Pilot - by gtalover12 - 16.04.2009, 13:25

Forum Jump:


Users browsing this thread: 2 Guest(s)