Advertisement
Guest User

ia

a guest
Jun 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. CMD:bonus(playerid, params[])
  2. {
  3. if(LogatPin[playerid] == 0) return SCM(playerid, -1, "Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca");
  4. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_YELLOW, "You need to login first.");
  5. if(IsPlayerConnected(playerid))
  6. {
  7. if(PlayerInfo[playerid][pLevel] > 3)
  8. {
  9. GivePlayerCash(playerid, 15000000);
  10. PlayerInfo[playerid][pLevel] = 5;
  11. PlayerInfo[playerid][pPremiumPoints] += 50;
  12. // PlayerInfo[playerid][pBonus] = 1;
  13. PlayerInfo[playerid][pCarLic] = 1;
  14. PlayerInfo[playerid][pCarLicT] = 100;
  15. PlayerInfo[playerid][pFlyLic] = 1;
  16. PlayerInfo[playerid][pFlyLicT] = 100;
  17. PlayerInfo[playerid][pBoatLic] = 1;
  18. PlayerInfo[playerid][pBoatLicT] = 100;
  19. PlayerInfo[playerid][pGunLic] = 1;
  20. PlayerInfo[playerid][pGunLicT] = 100;
  21. Update(playerid, pLevelx);
  22. Update(playerid, pCashx);
  23. Update(playerid, pPremiumPointsx);
  24. // Update(playerid, pBonusx);
  25. SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
  26. ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{ffffff}Server Bonus {ffffff}| {00FFFF}FOREVER{ffffff} |", "{ffffff}Ai folosit comanda {00FFFF}/bonus{ffffff} si ai primit:\n {00FFFF}-{ffffff} Level {00FFFF}5\n -{ffffff} 15.000.000{33cc33}$\n {00FFFF}-{ffffff} 50 Puncte {ffff00}Premium\n -{ffffff} Toate licentele timp de 100 {00FFFF}[ORE]","{ffffff}Multumesc","");
  27. }
  28. else return SCM(playerid, -1, "Deja ai primit bonusul.");
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement