Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. if(eventobjects != 0)
  2. {
  3. for(new obj=0; obj<11; obj++)
  4. {
  5. if(pickupid == objectevent[obj])
  6. {
  7. new string[128],name[30];
  8. GetPlayerName(playerid, name, sizeof(name));
  9. GivePlayerCash(playerid,eventprizeobj[obj]);
  10. Update(playerid,pCashx);
  11. format(string,sizeof(string),"Event: Un obiect din event a fost gasit de %s. Acesta a castigat un premiu de $%s !",name,FormatNumber(eventprizeobj[obj]));
  12. OOCNews(COLOR_ORANGE,string);
  13. if(eventobjects > 0)
  14. {
  15. format(string,sizeof(string),"Event: Eventul continua. Mai sunt %d obiecte de gasit !",eventobjects);
  16. }
  17. else
  18. {
  19. format(string,sizeof(string),"Event: Eventul a luat sfarsit. Multumim pentru participare !");
  20. }
  21. OOCNews(COLOR_ORANGE,string);
  22. objectevent[obj] = 0;
  23. eventprizeobj[obj] = 0;
  24. DestroyPickup(objectevent[obj]);
  25. eventobjects--;
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement