Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new mBag = 0;
- new mBagLoc[50] = "Nowhere";
- new mBagPickup;
- public OnGameModeInit()
- {
- Moneybag();
- return 1;
- }
- forward Moneybag();
- public Moneybag();
- {
- new pos = random(42);
- if(pos < 5 || pos == 5){ // Abandoned airport location
- if(pos == 0) createMBag(265.6487,2561.8484,16.3672, "Abandoned Airport");
- if(pos == 1) createMBag(185.7434,2548.7910,16.5096, "Abandoned Airport");
- }
- return 1;
- }
- forward createMBag(x, y, z, position[]);
- public createMBag();
- {
- mBagPickup = CreatePickup(1550, 2, x, y, z, 0);
- mBagLoc = position;
- new string[128];
- format(string, sizeof(string), "{3B7A57}[{A4C639}MoneyBag{3B7A57}] {568203}The moneybag has been hidden at {87A96B}%s{568203}! Find it for a reward.", mBagLoc);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment