Jump to content

Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 0
Posted
Acum 5 minute, Nica_Mihai a spus:

.

 

SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = MAPICON_LOCAL)
RemovePlayerMapIcon(playerid, iconid)

  • 0
Posted
Chiar acum, HPQ123 a spus:

SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style = MAPICON_LOCAL)
RemovePlayerMapIcon(playerid, iconid)

vreau sa apara mai multe in raza

  • 0
Posted
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).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.