SA-MP Forums Archive
[REQ] INPUT FS INTO GM - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [REQ] INPUT FS INTO GM (/showthread.php?tid=129611)



[REQ] INPUT FS INTO GM - addinol - 22.02.2010

Hi, i want to input this FS: http://weirdosport.pastebin.com/feca7f63

into my GameMode, and make that the automatic gates will open only if Player "if(IsACop(playerid))".

my GM: http://solidfiles.com/d/Kx5P


[T]HANKS!T[H]ANKS!TH[A]NKS!THA[N]KS!THAN[K]S!THANK[S]!



EDIT: SORRY WRONG SECTION :[ ADMINS PLEASE MOVE IT TO SCRIPTING HELP!


Re: [REQ] INPUT FS INTO GM - Fedee! - 22.02.2010

Its not hard.. just copy variables etc.


Re: [REQ] INPUT FS INTO GM - addinol - 22.02.2010

but how could i make that the gates will open only for Policeman ?


Re: [REQ] INPUT FS INTO GM - Fedee! - 22.02.2010

In that FS there is no command


Re: [REQ] INPUT FS INTO GM - addinol - 22.02.2010

i found something, might be useful

Код:
 			if(OpenGate[tempgate] == 0/* && IsPlayerAdmin(pid) == 1*/) OpenGate[tempgate] = IsPlayerNearGate(pid, tempgate, TOLERANCE);
should i add there
Код:
&& PlayerInfo[playerid][pJob] ==
( WHERE FROM CAN I GET THE JOB ID? BECAUSE I DON'T KNOW! :[ )