SA-MP Forums Archive
Command for FBI - 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: Command for FBI (/showthread.php?tid=443552)



Command for FBI - Qink - 12.06.2013

Hi, I was asking about how to make a gate that only usable by FBI members and not anybody else? this server have a lot of factions, LSPD, NG, FBI, etc, but how to make it only usable by FBI?


Re: Command for FBI - Don_Cage - 12.06.2013

If there is any other gates in the GM you could check how that one is made and learn by that.
What GM are you using?


Re: Command for FBI - Knappen - 12.06.2013

Most likely you have an enum defining what faction a player is in. Use the variable like this
pawn Код:
if(pData[playerid][pFaction] == FBI) // Change FBI with the actual number of the faction
Put that in the command that opens the gate you want to limit to FBI only.


Re: Command for FBI - Qink - 13.06.2013

Thank you very much!