[HELP] Gates
#1

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

https://sampwiki.blast.hk/wiki/Automatic_Gates
Reply
#3

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

Код:
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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)