SA-MP Forums Archive
[FilterScript] [FS][Job]Pilot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS][Job]Pilot (/showthread.php?tid=72766)

Pages: 1 2


[FS][Job]Pilot - Trooper[Y] - 10.04.2009

First of all,
The Credits :
zeruel_angel
for creating the Taxi Script, which i used the most
UGRS for being down
(so that i got the time)

Next Step,
Information :
(-Written on German)
For GF: Make a faction with just giving Pilots the Skin 61, the Job is just possible for persons with this Skin
For other GM`s: Give yourself Skin ID 61 and get into a dodo or Beagle (possible to change in the .pwn).

How to handle this Job ingame ?
Make sure having Skin ID 61 and get a dodo or Beagle.
Step in as Driver and type 2 to start the mission.
Now fly to the Checkpoints.
After landing, you get frozen for making shure you are waiting on passengers
After getting unfrozen, you have to refuel your Plane.
After that, you can start to the next Airport.
You get between 2.000$ and 5.000$ per Checkpoint.
All 3 Airports you get a Bonus of 500$.

How to install ?
Copy the "Pilot.amx" and "-.pwn" to your Filterscripts Directory.
Copy the "Airports.txt" and the "Airportfuel.txt" to your Scriptfiles Directory.

Add/Change Values/Koords
1.To change the money you receive, open the pilot.pwn, change the values at the top and compile again.
2.To change the Positons of Airports, add/edit the "Airports.txt" and "Airportfuel.txt" (x y z spin)

Download/Source
Source of the Pilot.pwn [http://pastebin.com/f1e854f1] (not stand-alone)
Download of the .rar-Archive with all files you need
http://ul.to/91nrp9
http://rapidshare.com/files/22112910...t_1.1.rar.html


[http://img12.myimg.de/samp002147ad.png][/url]


Re: [FS][Job]Pilot - tom_jonez - 10.04.2009

seems pretty cool.


Re: [FS][Job]Pilot - Trooper[Y] - 10.04.2009

It`s the Job i`ve been waiting for since Months, but last days i got enough Knowledge to realise it.
Probably someone can make Screenshots?


Re: [FS][Job]Pilot - DauerDicht - 10.04.2009

kannst du mir das genau erklдren wie das beim GF geht mit der faction?

can you explane me how it work on gf


Re: [FS][Job]Pilot - Trooper[Y] - 10.04.2009

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


Re: [FS][Job]Pilot - Trooper[Y] - 10.04.2009

/edited 1st post with the replaced Skin ID, now fixed

/edit:
Next Bug:
Isn`t changing Airport, so you always pend between Fuelstation and Landing zone.....
Will try to fix that...


Re: [FS][Job]Pilot - Trooper[Y] - 11.04.2009

So, Update to 1.1 got up.
I edit first post

Fixlog:
-No need for Refueling anymore
-Bugs fixed, now you have got randomized Airports
-Added the ID of the Planes: Now Pilots can use Dodo`s and Beagle`sд
-Added Screenshots


Re: [FS][Job]Pilot - Master_Gangster - 11.04.2009

lol lz fix the links....when I copy/paste the link I download it then it stops and a whole bunch of advertisements come and it changes the page to some dumbass china shop site LoL...


Re: [FS][Job]Pilot - Trooper[Y] - 11.04.2009

Impossible...
The Links are working fine for me....

Can you tell me exactly what you copied out and whats the domain you got ?


Re: [FS][Job]Pilot - Master_Gangster - 13.04.2009

I went here: http://uploaded.to/file/91nrp9

then downloaded it... and it became an htm file with the name....in ma documents...
THEN,I clicked on the htm file and it opened some site (srry cant post link only works for me....)dat said put the file in there then click "Upload It!"...did dat...uploaded it...then a link came up...

After that I found the htm file I downloaded earlier and put it in there then I hit "Upload It" button beside it then got this link: http://uploaded.to/file/jlz6mo <----(clicked it....) then got some other site....

THEN I clicked on "Free Download" and I got the download file I downloaded earlier with same name and same htm file...then downloaded it opened it and all these steps fkin hapened again...



Re: [FS][Job]Pilot - Trooper[Y] - 14.04.2009

I`ll add another mirror.

/edit: What the hell? Your right.... Stupid site....


Re: [FS][Job]Pilot - gtalover12 - 14.04.2009

Can you upload a English version please, i can't read a thing, and all the Text is in dutch/german or smth. thx


Re: [FS][Job]Pilot - Trooper[Y] - 14.04.2009

My session always time out when i try to edit 1st post....
English Mirror
http://rapidshare.com/files/22121754...otv1.1_Eng.rar
http://ul.to/6lsf9f



Re: [FS][Job]Pilot - gtalover12 - 14.04.2009

Quote:
Originally Posted by Trooper[Y
]
My session always time out when i try to edit 1st post....
English Mirror
http://rapidshare.com/files/22121754...otv1.1_Eng.rar
http://ul.to/6lsf9f
Thankyou, i'll be editing this , if you don't mind


Re: [FS][Job]Pilot - Trooper[Y] - 14.04.2009

No problem, im a beginner and learned from examples & editing


Re: [FS][Job]Pilot - Guedes747 - 14.04.2009

whowowow!!
Pilot Jobs?! I can't wait to get my hands on this stuff, this is ultra pwnage-ownage material


Re: [FS][Job]Pilot - Trooper[Y] - 14.04.2009

The only thing you have to get for yourself is to include the Filterscript, make a Trigger in your gamemode to change the Skin for pilot (in GF its the Taxiskin) ,so not everybody can be Pilot, and get started


Re: [FS][Job]Pilot - gtalover12 - 14.04.2009

Quote:
Originally Posted by Trooper[Y
]
No problem, im a beginner and learned from examples & editing
k, but one thing, i'm not a beginner , i just can't be asked to go make my own.. i have some other things to do at the same time lol.


Re: [FS][Job]Pilot - Guedes747 - 14.04.2009

Quote:
Originally Posted by -{NoX}-
Quote:
Originally Posted by Trooper[Y
]
No problem, im a beginner and learned from examples & editing
k, but one thing, i'm not a beginner , i just can't be asked to go make my own.. i have some other things to do at the same time lol.
Your'e PRO on scripting, but on flying ........ *cough*


Re: [FS][Job]Pilot - [4k]Wang - 15.04.2009

ProjectX has pilot job been realised ages ago.
In there first server duo infernalate,
But it has a better function but i dont want to give away ideas