Guest User

Untitled

a guest
Mar 22nd, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. new mBag = 0;
  2. new mBagLoc[50] = "Nowhere";
  3. new mBagPickup;
  4.  
  5. public OnGameModeInit()
  6. {
  7. Moneybag();
  8. return 1;
  9. }
  10.  
  11. forward Moneybag();
  12. public Moneybag();
  13. {
  14. new pos = random(42);
  15. if(pos < 5 || pos == 5){ // Abandoned airport location
  16. if(pos == 0) createMBag(265.6487,2561.8484,16.3672, "Abandoned Airport");
  17. if(pos == 1) createMBag(185.7434,2548.7910,16.5096, "Abandoned Airport");
  18. }
  19. return 1;
  20. }
  21.  
  22. forward createMBag(x, y, z, position[]);
  23. public createMBag();
  24. {
  25. mBagPickup = CreatePickup(1550, 2, x, y, z, 0);
  26. mBagLoc = position;
  27. new string[128];
  28. format(string, sizeof(string), "{3B7A57}[{A4C639}MoneyBag{3B7A57}] {568203}The moneybag has been hidden at {87A96B}%s{568203}! Find it for a reward.", mBagLoc);
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment