Guest User

Untitled

a guest
Mar 14th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. if(PlayerInfo[playerid][pQuestZ2] == 6) {
  2.  
  3. PlayerInfo[playerid][pQuestZProgres2] ++;
  4. Update(playerid, pQuestZProgres2x);
  5. FinalQuest(playerid);
  6.  
  7. }
  8.  
  9. function FinalQuest2(playerid) {
  10. new result2, quest2 = PlayerInfo[playerid][pQuestZ2];
  11. if(quest2 == 0 || quest2 == 1 || quest2 == 3 || quest2 == 4) result2 = 1;
  12. else if(quest2 == 2) result2 = 5;
  13. else if(quest2 == 5) result2 = 30;
  14. else if(quest2 == 6) result2 = 3;
  15.  
  16. if(PlayerInfo[playerid][pQuestZProgres2] >= result2) return 1;
  17.  
  18. if(PlayerInfo[playerid][pQuestZProgres2] == result2) {
  19. new string[128], money = 10000*PlayerInfo[playerid][pLevel] + random(5000);
  20. format(string, sizeof(string), "Misiunea [%s] a fost terminata!", QuestName2(PlayerInfo[playerid][pQuestZ2]));
  21. SCM(playerid, COLOR_YELLOW, string);
  22. format(string, sizeof(string), "Ai primit: $%s si un Respect Points!",FormatNumber(money));
  23. SCM(playerid, COLOR_YELLOW, string);
  24. GivePlayerCash(playerid, money);
  25. PlayerInfo[playerid][pExp] ++;
  26. Update(playerid, pRP);
  27. Update(playerid, pCashx);
  28. }
  29. else {
  30. new string2[128];
  31. format(string2, sizeof(string2), "Progres pentru misiunea (%s), [%d/%d]", QuestName2(PlayerInfo[playerid][pQuestZ2]),PlayerInfo[playerid][pQuestZProgres2],result2);
  32. SCM(playerid, COLOR_YELLOW, string2);
  33. }
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment