Guest User

Untitled

a guest
Dec 19th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if(strcmp(cmdtext,"/otvori", true) == 0)
  4. {
  5. if(IsPlayerInRangeOfPoint(playerid, 14.0, 1637.78381, -1146.09814, 25.70830))
  6. {
  7. MoveObject(gate, 1637.78381, -1146.09814, 20.03730,3);
  8. return 1;
  9. }
  10. }
  11. if(strcmp(cmdtext,"/zatvori", true) == 0)
  12. {
  13. if(IsPlayerInRangeOfPoint(playerid, 14.0, 1637.78381, -1146.09814, 25.70830))
  14. {
  15. MoveObject(gate, 1637.78381, -1146.09814, 25.70830,3);
  16. return 1;
  17. }
  18. }
  19. return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment