Advertisement
Guest User

Untitled

a guest
Aug 27th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. CMD:missions(playerid, params[]) {
  2. new string[180], status1[180], status2[180];
  3. if(PlayerInfo[playerid][pProgress][0] >= GetNeedProgress(playerid, 0)) format(status1, 256, "Misiune terminata");
  4. else format(status1, 256, "%d/%d", PlayerInfo[playerid][pProgress][0], GetNeedProgress(playerid, 0));
  5. if(PlayerInfo[playerid][pProgress][1] >= GetNeedProgress(playerid, 1)) format(status2, 256, "Misiune terminata");
  6. else format(status2, 256, "%d/%d", PlayerInfo[playerid][pProgress][1], GetNeedProgress(playerid, 1));
  7. format(string, sizeof(string), "(1) %s (Progres: %s)", missionName(playerid, PlayerInfo[playerid][pDailyMission][0], 0), status1);
  8. SendClientMessage(playerid, COLOR_YELLOW, string);
  9. format(string, sizeof(string), "(2) %s (Progres: %s)", missionName(playerid, PlayerInfo[playerid][pDailyMission][1], 1), status2);
  10. SendClientMessage(playerid, COLOR_YELLOW, string);
  11. return 1;
  12. }
  13.  
  14. //
  15.  
  16. stock missionName(playerid, type, id) {
  17. new string[256];
  18. switch(type) {
  19. case 0: format(string, sizeof(string), "Omoara %d jucatori la arena de paintball", PlayerInfo[playerid][pNeedProgress][id]);
  20. case 1: format(string, sizeof(string), "Livreaza %d cutii cu pizza", PlayerInfo[playerid][pNeedProgress][id]);
  21. case 2: format(string, sizeof(string), "Prinde %d pesti", PlayerInfo[playerid][pNeedProgress][id]);
  22. case 3: format(string, sizeof(string), "Colecteaza de %d materiale", PlayerInfo[playerid][pNeedProgress][id]);
  23. case 4: format(string, sizeof(string), "Vinde %d saci cu faina", PlayerInfo[playerid][pNeedProgress][id]);
  24. case 5: format(string, sizeof(string), "Fura %d vehicule", PlayerInfo[playerid][pNeedProgress][id]);
  25. case 6: format(string, sizeof(string), "Vinde o arma unui jucator");
  26. case 7: format(string, sizeof(string), "Viziteaza muntele Chilliad");
  27. case 8: format(string, sizeof(string), "Viziteaza aeroportul din Los Santos");
  28. case 9: format(string, sizeof(string), "Viziteaza stadionul de Baseball LV");
  29. case 10: format(string, sizeof(string), "Mergi intr-un club si imbata-te");
  30. case 11: format(string, sizeof(string), "Localizeaza un player");
  31. case 12: format(string, sizeof(string), "Drogheaza-te");
  32. case 13..14: {
  33. if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
  34. format(string, sizeof(string), "Aresteaza %d suspecti", PlayerInfo[playerid][pNeedProgress][id]);
  35. else if(PlayerInfo[playerid][pMember] == 7)
  36. format(string, sizeof(string), "Ofera %d licente", PlayerInfo[playerid][pNeedProgress][id]);
  37. else if(PlayerInfo[playerid][pMember] == 8)
  38. format(string, sizeof(string), "Tracteaza %d vehicule", PlayerInfo[playerid][pNeedProgress][id]);
  39. else if(PlayerInfo[playerid][pMember] == 9)
  40. format(string, sizeof(string), "Da %d anunturi", PlayerInfo[playerid][pNeedProgress][id]);
  41. else if(PlayerInfo[playerid][pMember] == 11)
  42. format(string, sizeof(string), "Finalizeaza %d contracte", PlayerInfo[playerid][pNeedProgress][id]);
  43. else if(PlayerInfo[playerid][pMember] == 12)
  44. format(string, sizeof(string), "Transporta %d playeri la destinatia dorita", PlayerInfo[playerid][pNeedProgress][id]);
  45. else if(PlayerInfo[playerid][pMember] == 13)
  46. format(string, sizeof(string), "Ofera viata la %d playeri", PlayerInfo[playerid][pNeedProgress][id]);
  47. else format(string, sizeof(string), "Prinde %d pesti", PlayerInfo[playerid][pNeedProgress][id]);
  48. }
  49. case 15: format(string, sizeof(string), "Plaseaza %d contracte", PlayerInfo[playerid][pNeedProgress][id]);
  50. case 16: format(string, sizeof(string), "Repara vehiculul de %d ori intr-un PNS", PlayerInfo[playerid][pNeedProgress][id]);
  51. case 17: format(string, sizeof(string), "Joaca barbut cu o persoana");
  52.  
  53. }
  54. return string;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement