Advertisement
Guest User

Untitled

a guest
May 14th, 2022
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. questVehicle[playerid] = 69;
  13. 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.");
  14. SCM(playerid, 0x9898ffFF, "* {ffffff}Scopul tau este sa aduni cei 20 oua de pasti marcati pe harta.");
  15. SCM(playerid, 0x9898ffFF, "* {ffffff}Cand ai ajuns la un ou, apasa tasta {ffffff}N {9898ff}pentru a-l colecta.");
  16. 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.");
  17. SCM(playerid, 0x9898ffFF, "* {ffffff}Quest-ul se reseteaza in fiecare dimineata, dupa terminarea quest-ului vei primi un premiu.");
  18. SCMf(playerid, 0x9898ffFF, "* {ffffff}Oua adunate: {ffffff}%d/%d{9898ff}.", QUEST_OBJECTS - Iter_Count(QuestObjects[playerid]), QUEST_OBJECTS);
  19.  
  20. foreach(new i: QuestObjects[playerid]) {
  21. //new rand = random(sizeof(QuestObjectId));
  22. SetPlayerMapIcon(playerid, i+50, QuestPos[i][0], QuestPos[i][1], QuestPos[i][2], 56, 0, MAPICON_GLOBAL);
  23. 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);
  24. }
  25.  
  26. questVehicle[playerid] = CreateVehicleEx(587, 1728.2004, -1857.1938, 13.2480, 269.8082, -1, -1, -1, -1);
  27. PutPlayerInVehicle(playerid, questVehicle[playerid], 0); //PutPlayerInVehicle(playerid, questVehicle[playerid], 0);
  28. return 1;
  29. }
Advertisement
RAW Paste Data Copied
Advertisement