Seha_

gate

Aug 20th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. new gate;
  2.  
  3. Gate = CreateObject(18769, -2296.1228, -106.0165, 33.6155, 0.0, 0.0, 0.0, 100.0);
  4.  
  5. CMD:admingate(playerid, params[])
  6. {
  7. if(IsPlayerInRangeOfPoint(playerid, 15.0, -2296.1228, -106.0165, 33.6155)){
  8. SetTimerEx("CloseGate", 12000, false, "i", playerid);
  9. MoveObject(Gate, -2296.1228, -106.0165, 23.0414, 3.0, 0.0, 0.0, 0.0);
  10. return 1;
  11. }
  12. }
  13.  
  14. forward CloseGate(playerid);
  15. public CloseGate(playerid)
  16. {
  17. MoveObject(Gate, -2296.1228, -106.0165, 33.6155, 3.0, 0.0, 0.0, 0.0);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment