Advertisement
Guest User

Untitled

a guest
Nov 29th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. CMD:bonus(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(BonusActiv > 0)
  7. {
  8. if(PlayerInfo[playerid][pLevel] <= 2)
  9. {
  10. GivePlayerCash(playerid, 30000000);
  11. PlayerInfo[playerid][pLevel] = 3;
  12. PlayerInfo[playerid][pPremiumPoints] = 100;
  13. Update(playerid, pLevelx);
  14. Update(playerid, pCashx);
  15. Update(playerid, pPremiumPointsx);
  16. SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
  17. SendClientMessage(playerid, COLOR_WHITE, "--------------------------[RPG.AFUMATII.RO]---------------------------------");
  18. SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000, te poti duce la un job si poti sa-ti cumperi o masina!");
  19. SendClientMessage(playerid, COLOR_BLUE, "Ai primit level 3, de la level 5 poti intra intr-o factiune!");
  20. SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 puncte premium pe care le poti folosi in [/shop]!");
  21. SendClientMessage(playerid, COLOR_WHITE, "--------------------------[RPG.AFUMATII.RO]---------------------------------");
  22. }
  23. else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
  24. }
  25. }
  26. return 1;
  27. }
  28. CMD:activatebonus(playerid, params[])
  29. {
  30. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  31. if(IsPlayerConnected(playerid))
  32. {
  33. if (PlayerInfo[playerid][pAdmin] >= 6)
  34. {
  35. if(BonusActiv == 0)
  36. {
  37. BonusActiv = 1;
  38. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!");
  39. }
  40. else
  41. {
  42. BonusActiv = 0;
  43. SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!");
  44. }
  45. }
  46. else
  47. {
  48. SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar.");
  49. }
  50. }
  51. return 1;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement