Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(PlayerInfo[playerid][pQuestZ2] == 6) {
- PlayerInfo[playerid][pQuestZProgres2] ++;
- Update(playerid, pQuestZProgres2x);
- FinalQuest(playerid);
- }
- function FinalQuest2(playerid) {
- new result2, quest2 = PlayerInfo[playerid][pQuestZ2];
- if(quest2 == 0 || quest2 == 1 || quest2 == 3 || quest2 == 4) result2 = 1;
- else if(quest2 == 2) result2 = 5;
- else if(quest2 == 5) result2 = 30;
- else if(quest2 == 6) result2 = 3;
- if(PlayerInfo[playerid][pQuestZProgres2] >= result2) return 1;
- if(PlayerInfo[playerid][pQuestZProgres2] == result2) {
- new string[128], money = 10000*PlayerInfo[playerid][pLevel] + random(5000);
- format(string, sizeof(string), "Misiunea [%s] a fost terminata!", QuestName2(PlayerInfo[playerid][pQuestZ2]));
- SCM(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "Ai primit: $%s si un Respect Points!",FormatNumber(money));
- SCM(playerid, COLOR_YELLOW, string);
- GivePlayerCash(playerid, money);
- PlayerInfo[playerid][pExp] ++;
- Update(playerid, pRP);
- Update(playerid, pCashx);
- }
- else {
- new string2[128];
- format(string2, sizeof(string2), "Progres pentru misiunea (%s), [%d/%d]", QuestName2(PlayerInfo[playerid][pQuestZ2]),PlayerInfo[playerid][pQuestZProgres2],result2);
- SCM(playerid, COLOR_YELLOW, string2);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment