SA-MP Forums Archive
[HELP] 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Gates (/showthread.php?tid=267722)



[HELP] Gates - Xtreme-Nicole - 09.07.2011

some can give me a download link for a command gate script?? all my scripts not work


Re: [HELP] Gates - MoroDan - 09.07.2011

https://sampwiki.blast.hk/wiki/Automatic_Gates


Re: [HELP] Gates - Xtreme-Nicole - 10.07.2011

Thanks for u help but i mean open a gate with command not automatic


Re : [HELP] Gates - Steeve_Smith - 10.07.2011

Код:
if(strcmp(cmdtext, "/open", true) == 0)
 { 
   MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your opened gate
   SendClientMessage(playerid, color, "Gate opened!");
 }
Код:
if(strcmp(cmdtext, "/close'", true) == 0)
 { 
   MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your closed gate
   SendClientMessage(playerid, color, "Gate closed!");
 }
Use "IsPlayerInRangeOfPoint" or you will be able to open/close it in whole San Andreas.


Re: [HELP] Gates - Ash. - 10.07.2011

I made a script to do just that, all you have to do is input your co-ordinates

Here: https://sampforum.blast.hk/showthread.php?tid=164657

Edit: Or do the above.