Guest User

Untitled

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