Guest User

OPENCRATE

a guest
Feb 8th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. CMD:opencrate(playerid, params[])
  2. {
  3. if(pInfo[playerid][pScore] < 3) return SCM(playerid, COLOR_ERROR, "Nu ai nivelul neceser pentru a folosi aceasta comanda.");
  4. if(!IsPlayerInRangeOfPoint(playerid, 7.0,155.6681,-1966.2190,3.5834)) return SCM(playerid, COLOR_ERROR, "Nu esti la locatia potrivita.");
  5. switch(random(4))
  6. {
  7. case 0:
  8. {
  9. GiveMoney(playerid, 902000);
  10. SCM(playerid, COLOR_SUCCES, "Ai castigat: 902000$ din (Legendary Crate).");
  11. }
  12. case 1:
  13. {
  14. GiveMoney(playerid, 1010000);
  15. SCM(playerid, COLOR_SUCCES, "Ai castigat: 1010000$ din (Legendary Crate).");
  16. }
  17. case 2:
  18. {
  19. GiveMoney(playerid, 1010000);
  20. SCM(playerid, COLOR_SUCCES, "Ai castigat: 1010000$ din (Legendary Crate).");
  21. }
  22. case 3:
  23. {
  24. GiveMoney(playerid, 2100000);
  25. SCM(playerid, COLOR_SUCCES, "Ai castigat: 2100000$ din (Legendary Crate).");
  26. }
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment