Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

Salut, 

Ma poate ajuta cineva cu un sfat cum sa pun mapicon la obiectele de la quest atunci cand iti cumperi un backpack ( exemplu ) si cand mori sa dispara gen.

2 answers to this question

Recommended Posts

  • 0
Posted

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. ;) 

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
×
×
  • 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.