Advertisement
ihatetn931

Untitled

Aug 27th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. if (!strcmp("/buy", cmdtext))
  2. {
  3. if (IsPlayerInRangeOfPoint(playerid, 5.0, -28.7746, -185.1358, 1003.5469, 174.9119))
  4. {
  5. SendClientMessage(playerid,COLOR_WHITE,"List of items to purchase: Mask - 10000");
  6. }
  7. else
  8. {
  9. SendClientMessage(playerid,COLOR_WHITE,"You're not at the location");
  10. }
  11. return 1;
  12. }
  13.  
  14. YCMD:buy(playerid, params[], help)
  15. {
  16.  
  17. if (IsPlayerInRangeOfPoint(playerid, 5.0, -28.7746, -185.1358, 1003.5469, 174.9119)) return
  18. SendClientMessage(playerid,COLOR_WHITE,"List of items to purchase: Mask - 10000");
  19. if (IsPlayerInRangeOfPoint(playerid, 5.0, -28.7746, -185.1358, 1003.5469, 174.9119)) return
  20. SendClientMessage(playerid,COLOR_WHITE,"You're not in the correct area");
  21. return 1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement