Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:missions(playerid, params[]) {
- new string[180], status1[180], status2[180];
- if(PlayerInfo[playerid][pProgress][0] >= GetNeedProgress(playerid, 0)) format(status1, 256, "Misiune terminata");
- else format(status1, 256, "%d/%d", PlayerInfo[playerid][pProgress][0], GetNeedProgress(playerid, 0));
- if(PlayerInfo[playerid][pProgress][1] >= GetNeedProgress(playerid, 1)) format(status2, 256, "Misiune terminata");
- else format(status2, 256, "%d/%d", PlayerInfo[playerid][pProgress][1], GetNeedProgress(playerid, 1));
- format(string, sizeof(string), "(1) %s (Progres: %s)", missionName(playerid, PlayerInfo[playerid][pDailyMission][0], 0), status1);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- format(string, sizeof(string), "(2) %s (Progres: %s)", missionName(playerid, PlayerInfo[playerid][pDailyMission][1], 1), status2);
- SendClientMessage(playerid, COLOR_YELLOW, string);
- return 1;
- }
- //
- stock missionName(playerid, type, id) {
- new string[256];
- switch(type) {
- case 0: format(string, sizeof(string), "Omoara %d jucatori la arena de paintball", PlayerInfo[playerid][pNeedProgress][id]);
- case 1: format(string, sizeof(string), "Livreaza %d cutii cu pizza", PlayerInfo[playerid][pNeedProgress][id]);
- case 2: format(string, sizeof(string), "Prinde %d pesti", PlayerInfo[playerid][pNeedProgress][id]);
- case 3: format(string, sizeof(string), "Colecteaza de %d materiale", PlayerInfo[playerid][pNeedProgress][id]);
- case 4: format(string, sizeof(string), "Vinde %d saci cu faina", PlayerInfo[playerid][pNeedProgress][id]);
- case 5: format(string, sizeof(string), "Fura %d vehicule", PlayerInfo[playerid][pNeedProgress][id]);
- case 6: format(string, sizeof(string), "Vinde o arma unui jucator");
- case 7: format(string, sizeof(string), "Viziteaza muntele Chilliad");
- case 8: format(string, sizeof(string), "Viziteaza aeroportul din Los Santos");
- case 9: format(string, sizeof(string), "Viziteaza stadionul de Baseball LV");
- case 10: format(string, sizeof(string), "Mergi intr-un club si imbata-te");
- case 11: format(string, sizeof(string), "Localizeaza un player");
- case 12: format(string, sizeof(string), "Drogheaza-te");
- case 13..14: {
- if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
- format(string, sizeof(string), "Aresteaza %d suspecti", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 7)
- format(string, sizeof(string), "Ofera %d licente", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 8)
- format(string, sizeof(string), "Tracteaza %d vehicule", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 9)
- format(string, sizeof(string), "Da %d anunturi", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 11)
- format(string, sizeof(string), "Finalizeaza %d contracte", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 12)
- format(string, sizeof(string), "Transporta %d playeri la destinatia dorita", PlayerInfo[playerid][pNeedProgress][id]);
- else if(PlayerInfo[playerid][pMember] == 13)
- format(string, sizeof(string), "Ofera viata la %d playeri", PlayerInfo[playerid][pNeedProgress][id]);
- else format(string, sizeof(string), "Prinde %d pesti", PlayerInfo[playerid][pNeedProgress][id]);
- }
- case 15: format(string, sizeof(string), "Plaseaza %d contracte", PlayerInfo[playerid][pNeedProgress][id]);
- case 16: format(string, sizeof(string), "Repara vehiculul de %d ori intr-un PNS", PlayerInfo[playerid][pNeedProgress][id]);
- case 17: format(string, sizeof(string), "Joaca barbut cu o persoana");
- }
- return string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement