Question about the gates - 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: Question about the gates (
/showthread.php?tid=340738)
Question about the gates -
Spike Cena - 08.05.2012
Hello all me again l have one gusetion when l make gates with MTA how to put the cmds to gates to open olny for admins and and some gates for players?
Re: Question about the gates -
[D]ry[D]esert - 08.05.2012
Use
Код:
If(IsPlayerInRangeOfPoint(playerid,Float:range,Float:x,Float:y,Float:z))
{
if(IsPlayerAdmin(playerid)
{
//your Gate open here
}
}
Re: Question about the gates -
Spike Cena - 08.05.2012
where to add that exactly?