Advertisement
Guest User

quest

a guest
Jun 6th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. YCMD:startquest(playerid, params[], help) {
  2. if(PlayerInfo[playerid][pLevel] < 2) return SCM(playerid, -1, "Ai nevoie de level 2 pentru a incepe quest-ul special.");
  3. if(!IsPlayerInRangeOfPoint(playerid, 5.0, 1726.0439,-1937.8929,13.5826)) {
  4. if(CP[playerid] == 0) SetPlayerCheckpointEx(playerid, 943.7119,-2074.9663,8.8038, 3.0);
  5. CP[playerid] = 53;
  6. return 1;
  7. }
  8.  
  9. if(Iter_Count(QuestObjects[playerid]) < 1) return SCM(playerid, -1, "Ai terminat deja quest-ul pe ziua de azi!");
  10. if(questVehicle[playerid] != 0) return SCM(playerid, -1, "Ai inceput quest-ul deja. Foloseste comanda /stopquest daca vrei sa opresti procesul de cautare.");
  11.  
  12. SCM(playerid, 0x9898ffFF, "* {ffffff}Salut, deoarece a venit pastele-ul, iepurele in timp ce isi ducea cosul cu oua spre casa, si-a scapat cosul cu oua, iar acestia au fost imprastiati prin orasele Los Santos si Las Venturas.");
  13. SCM(playerid, 0x9898ffFF, "* {ffffff}Scopul tau este sa aduni cei 20 oua de pasti marcati pe harta.");
  14. SCM(playerid, 0x9898ffFF, "* {ffffff}Cand ai ajuns la un ou, apasa tasta {ffffff}N {9898ff}pentru a-l colecta.");
  15. SCM(playerid, 0x9898ffFF, "* {ffffff}Daca ai adunat totate ouale de paste timp de 10 zile, vei primi un premiu special. Tasteaza {9898ff}/quests {ffffff}pentru a vedea progresul tau.");
  16. SCM(playerid, 0x9898ffFF, "* {ffffff}Quest-ul se reseteaza in fiecare dimineata, dupa terminarea quest-ului vei primi un premiu.");
  17. SCMf(playerid, 0x9898ffFF, "* {ffffff}Oua adunate: {ffffff}%d/%d{9898ff}.", QUEST_OBJECTS - Iter_Count(QuestObjects[playerid]), QUEST_OBJECTS);
  18.  
  19. for(new i=0; i<20; i++) { // i<20 (numarul de obiecte)
  20. SetPlayerMapIcon(playerid, i, QuestPos[i][0], QuestPos[i][1], QuestPos[i][2], 56, 0, MAPICON_GLOBAL);
  21. PlayerInfo[playerid][pObjectQuest][i] = CreatePlayerObject(playerid, QuestObjectId[random(6)][0], QuestPos[i][0], QuestPos[i][1], QuestPos[i][2]-0.5, 0, 0, 0, 300.0);
  22. }
  23.  
  24. questVehicle[playerid] = CreateVehicle(587, 1728.2004, -1857.1938, 13.2480, 269.8082, -1, -1, -1, -1);
  25. PutPlayerInVehicle(playerid, questVehicle[playerid], 0); //PutPlayerInVehicle(playerid, questVehicle[playerid], 0);
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement