SA-MP Forums Archive
Linking neons to mechanic job - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Linking neons to mechanic job (/showthread.php?tid=310976)



Linking neons to mechanic job - viddo - 14.01.2012

Ok so i found a cool neon filterscript that i liked and i wanted to link it to the mechanic job so only him can create it any ideas ??


Re: Linking neons to mechanic job - iGetty - 14.01.2012

Well, what's your "Mechanic Job" Variable? Also; have you added the FilterScript into your GameMode? Like, implemented it?

If not, do that and then tell me the variable: EG:
pawn Код:
if(gPlayerData[playerid][Job] == 3) return SendClientMessage(playerid, GREY, "This is the Mechanic job.");
Thanks.


Re: Linking neons to mechanic job - viddo - 15.01.2012

nope i didnt add the fs to the game mode.

Код:
if(JobDuty[playerid] == 1) { Mechanics -= 1; }
Код:
SendClientMessage(playerid, COLOR_WHITE, "* You are about to become a Car Mechanic, and get a 5 hour Contract.");
				SendClientMessage(playerid, COLOR_WHITE, "* You have to forfill this Contract first, if you want to Quit the job later.");
				SendClientMessage(playerid, COLOR_WHITE, "* If you are sure to become a Car Mechanic, type /accept job.");
				GettingJob[playerid] = 7;
				TogglePlayerControllable(playerid,1);
			}