SA-MP Forums Archive
HS-RP Gate for Leo with /gate - 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: HS-RP Gate for Leo with /gate (/showthread.php?tid=478777)



HS-RP Gate for Leo with /gate - Doros - 01.12.2013

how can I make gate with /gate to Faction?


Re: HS-RP Gate for Leo with /gate - Lidor124 - 01.12.2013

in the top of your script
new lspdgate;

where createobject located: like here https://sampwiki.blast.hk/wiki/CreateObject
lspdgate = CreateObject(gateid, x, y, z bla bla bla);


whereever u want to place it:

CMD:gate(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 1) // check if the player is in LSPD faction
{
MoveObject(lspdgate, x, y ,z.... bla bla bla); // like here https://sampwiki.blast.hk/wiki/MoveObject
return 1;
}

that's the basic of opening the gate