Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. CMD:quest(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_LIGHTRED, "You need to login first.");
  5. if(IsPlayerConnected(playerid))
  6. {
  7. new remain = 50,str[1256],str1[1256],str2[1256],str3[1256],str4[1256],str5[2556],str6[1256];
  8. for(new qs=0; qs<50; qs++)
  9. {
  10. if(QEvent[playerid][qs] == 1)
  11. {
  12. remain--;
  13. }
  14. }
  15. if(PlayerInfo[playerid][pLanguage] == 2)
  16. {
  17. format(str, sizeof(str), "{ffffff}Quest-ul consta in colectarea a {72ff00}50{ffffff} de cadouri (25 in LS si 25 in LV).");
  18. format(str1, sizeof(str1), "{ffffff}Dupa ce colectati toate cadourile puteti primi:");
  19. format(str2, sizeof(str2), "{ffffff} - intre {72ff00}1.500.000{33cc33}${ffffff} - {72ff00}5.000.000{33cc33}$");
  20. format(str3, sizeof(str3), "{ffffff} - intre {72ff00}5 {ffffff}- {72ff00}15{ffffff} RP");
  21. format(str4, sizeof(str4), "{ffffff} - intre {72ff00}10 {ffffff}- {72ff00}40 {ffffff}Puncte Premium ( {72ff00}10 la suta sanse de castig{ffffff} )");
  22. format(str4, sizeof(str4), "{ffffff} - La fiecare {72ff00}Cadou {ffffff}gasit veti primi o suma de bani!");
  23. if(remain > 0)
  24. {
  25. format(str6, sizeof(str6),"{ffffff}Ai gasit {72ff00}%d{ffffff} cadouri si mai ai {72ff00}%d ", 50-remain, remain);
  26. }
  27. else if(remain == 0)
  28. {
  29. format(str6, sizeof(str6),"{72ff00}Ai terminat acest quest, felicitari!");
  30. }
  31. format(str5, sizeof(str5), "%s\n%s\n%s\n%s\n%s\n%s",str,str1,str2,str3,str4,str6);
  32. ShowPlayerDialog(playerid, 9343, DIALOG_STYLE_MSGBOX, "Quest",str5,"Okey","");
  33. }
  34. else
  35. {
  36. SendClientMessage(playerid, COLOR_YELLOW, "On this quest you need to collect 50 hearts (25 in Los Santos and 25 in Las Venturas).");
  37. SendClientMessage(playerid, COLOR_YELLOW, "After you collect all hearts you will receive 1.5-5kk$, 5-15 rp and if you are lucky 10-40 premium points.");
  38. SendClientMessage(playerid, COLOR_YELLOW, "Success to find all 50 hearts!");
  39. if(remain > 0)
  40. {
  41. format(str, sizeof(str),"You have %d hearts remaining to collect to receive a special prize.", remain);
  42. SendClientMessage(playerid, COLOR_YELLOW, str);
  43. }
  44. else if(remain == 0)
  45. {
  46. SendClientMessage(playerid, COLOR_YELLOW, "You completed this quest.");
  47. }
  48. }
  49. }
  50. return 1;
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement