Gates, make them open only on family members - 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: Gates, make them open only on family members (
/showthread.php?tid=47472)
Gates, make them open only on family members -
Tisca - 16.08.2008
Hi guys, i got like 3-4 gates, and one of my friends was just playing for fun in my server - and then he did /opengate Yakuza - and then it opened - LOL ..
So is there a specific command to make it open only when its a Yakuza member, and not anyone else - cant seem to find anything about /opengate yakuza in my script .
Well, can someone help me out?
Re: Gates, make them open only on family members -
bineboy - 16.08.2008
depending of the way you made your family system, it should be like
Код:
if(TheThingThatYouDefinedAsFamily[playerid] == Yakusa)
{
What you already have for your gate
}
And if it's in a text cmd, I guess you can just mixt what I told you with your cmd :P
Good luck with it
Re: Gates, make them open only on family members -
Tisca - 16.08.2008
Here is a file, hope it helps

.
Dont know if it is the right one .
http://pastebin.com/m1156cea7
Re: Gates, make them open only on family members -
juuleman - 03.10.2009
Try this:
http://forum.sa-mp.com/index.php?topic=66575.0