Jump to content
  • 0

[Ajutor] MapIcon Quest


TheRive

Question

2 answers to this question

Recommended Posts

  • 0

Pentru a face asta te folosesti de 

SetPlayerMapIcon

 

Parametrii:

(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style)

 

playerid -> id-ul player-ului

iconid -> id-ul iconitei (id-ul trebuie sa fie cuprins intre 0 - 99 deoarece 100 este maximul de iconite pe minimap)

Float: x, Float:y, Float:z -> pozitiile

markertype -> tipul iconitei (http://wiki.sa-mp.com/wiki/MapIcons)

color -> culoarea

style -> stilul iconitei (http://wiki.sa-mp.com/wiki/MapIconStyle)

 

Functie: http://wiki.sa-mp.com/wiki/SetPlayerMapIcon

 

Iar ce vrei tu sa faci e simplu.

 

Cand cumpara un ghizdan, faci o bucla si creezi mapicon-urile.

Iar cand moare, verifici la OnPlayerDeath daca are backpack == 1, il setezi pe 0 si la fel, faci o bucla si ii stergi mapicon urile cu functia 

RemovePlayerMapIcon

 

Parametrii:

(playerid, iconid)

 

playerid -> id-ul player-ului

iconid -> id-ul iconitei, am explicat mai sus ce este acest iconid.

 

Functia:http://wiki.sa-mp.com/wiki/RemovePlayerMapIcon

 

De aici te las sa faci singur, asa inveti. ;) 

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.