Jump to content
  • 0

Obiecte pe minimap


Nica_Mihai

Question

cum pot face ca la quest sa imi arata obiectele din apropiere pe minimap ?
Am facut asa :
if(PlayerToPoint(150.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) {

CreateDynamicMapIcon(QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2], 56,0,0,0,-1,500.0)

}    

Dar dupa ce iau obiectul nu  dispare de pe minimap

 

Edited by Nica_Mihai
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Acum 2 ore, Nica_Mihai a spus:

.

MAX_QUEST_OBJECT este doar un exemplu tu pui numarul tau de obiecte pe care le ai.

for(new sq = 0; sq < MAX_QUEST_OBJECT; sq++)  {

 SetPlayerMapIcon(playerid, 70+sq, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2], 56, 0, MAPICON_GLOBAL);

}

asta cu setplayermapicon poti sa pui tu acolo unde se creaza loopul pentru a crea obiectele pentru quest.

if(PlayerToPoint(150.0, i, QuestPos[sq][0], QuestPos[sq][1], QuestPos[sq][2])) {

     RemovePlayerMapIcon(playerid, 70+sq);

}

asta pentru a sterge mapiconul dupa mapa cand intri intr-un obiect.

Sper ca ai inteles, (+1).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.