Advertisement
Guest User

treasure hunt

a guest
Jun 29th, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. if(pickupid == treasurepick) {
  2. DestroyPickup(treasurepick);
  3. new string[128], money;
  4. money = 5 + random(20);
  5. PlayerInfo[playerid][pTreasurePoints] += money;
  6. Update(playerid, pTreasurePointsx);
  7. format(string, sizeof(string), "TREASURE: Ai primit %s Treasure Points pentru ca ai gasit obiectul ascuns!", FormatNumber(money));
  8. SCM(playerid, -1, string);
  9. format(string, sizeof(string), "TREASURE: %s a gasit obiectul ascuns! Un nou obiect o sa fie ascuns peste 10 minute!", GetName(playerid));
  10. SCMTA(-1, string);
  11. treasurerand = 0;
  12. SetTimer("treasure", 60000*10, false);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement