Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. forward GateCheck();
  2. public GateCheck()
  3. {
  4. for(new i=0; i<MAX_PLAYERS; i++)
  5. {
  6. if(IsPlayerConnected(i))
  7. {
  8. if(IsPlayerInRangeOfPoint(i, 10.0, 2641.8201, 2810.6196, 36.3222))
  9. {
  10. MoveObject(AutomaticGate, 1811.4591, -1894.3032, 13.2392, 5.0);
  11. }
  12. else
  13. {
  14. MoveObject(AutomaticGate, 1811.4558, -1894.2816, 12.4562, 5.0);
  15. }
  16. }
  17. }
  18. }
  19.  
  20. SetTimer("GateCheck", 1000, true);
  21.  
  22. AutomaticGate = CreateObject(968, 1811.4591, -1894.3032, 13.2392, 0, 0, 0);
  23. new AutomaticGate;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement