Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:quest(playerid, params[])
- {
- if(LogatPin[playerid] == 0) return SCM(playerid, -1, "Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca");
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(IsPlayerConnected(playerid))
- {
- new remain = 50,str[1256],str1[1256],str2[1256],str3[1256],str4[1256],str5[2556],str6[1256];
- for(new qs=0; qs<50; qs++)
- {
- if(QEvent[playerid][qs] == 1)
- {
- remain--;
- }
- }
- if(PlayerInfo[playerid][pLanguage] == 2)
- {
- format(str, sizeof(str), "{ffffff}Quest-ul consta in colectarea a {72ff00}50{ffffff} de cadouri (25 in LS si 25 in LV).");
- format(str1, sizeof(str1), "{ffffff}Dupa ce colectati toate cadourile puteti primi:");
- format(str2, sizeof(str2), "{ffffff} - intre {72ff00}1.500.000{33cc33}${ffffff} - {72ff00}5.000.000{33cc33}$");
- format(str3, sizeof(str3), "{ffffff} - intre {72ff00}5 {ffffff}- {72ff00}15{ffffff} RP");
- format(str4, sizeof(str4), "{ffffff} - intre {72ff00}10 {ffffff}- {72ff00}40 {ffffff}Puncte Premium ( {72ff00}10 la suta sanse de castig{ffffff} )");
- format(str4, sizeof(str4), "{ffffff} - La fiecare {72ff00}Cadou {ffffff}gasit veti primi o suma de bani!");
- if(remain > 0)
- {
- format(str6, sizeof(str6),"{ffffff}Ai gasit {72ff00}%d{ffffff} cadouri si mai ai {72ff00}%d ", 50-remain, remain);
- }
- else if(remain == 0)
- {
- format(str6, sizeof(str6),"{72ff00}Ai terminat acest quest, felicitari!");
- }
- format(str5, sizeof(str5), "%s\n%s\n%s\n%s\n%s\n%s",str,str1,str2,str3,str4,str6);
- ShowPlayerDialog(playerid, 9343, DIALOG_STYLE_MSGBOX, "Quest",str5,"Okey","");
- }
- else
- {
- SendClientMessage(playerid, COLOR_YELLOW, "On this quest you need to collect 50 hearts (25 in Los Santos and 25 in Las Venturas).");
- 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.");
- SendClientMessage(playerid, COLOR_YELLOW, "Success to find all 50 hearts!");
- if(remain > 0)
- {
- format(str, sizeof(str),"You have %d hearts remaining to collect to receive a special prize.", remain);
- SendClientMessage(playerid, COLOR_YELLOW, str);
- }
- else if(remain == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "You completed this quest.");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement