SA-MP Forums Archive
Is possible the possible function SetPlayerMapIcon for all players? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is possible the possible function SetPlayerMapIcon for all players? (/showthread.php?tid=567682)



Is possible the possible function SetPlayerMapIcon for all players? - Antonio2323 - 15.03.2015

Hi,

I would like know if the possilble show map icons for all players...

Thanks


Re: Is possible the possible function SetPlayerMapIcon for all players? - Luis- - 15.03.2015

It is possible, using Incognitos streamer.


Respuesta: Is possible the possible function SetPlayerMapIcon for all players? - alexus - 15.03.2015

Using a loop


Re: Is possible the possible function SetPlayerMapIcon for all players? - Antonio2323 - 15.03.2015

How? help me please...


Re: Is possible the possible function SetPlayerMapIcon for all players? - Luis- - 15.03.2015

Код:
CreateDynamicMapIcon(X, Y, Z, type, color, worldid, inteirorid, playerid, streamdistance)
Obviously you need the streamer plugin.


Re: Is possible the possible function SetPlayerMapIcon for all players? - ReD_HunTeR - 15.03.2015

maybe use it on OnPlayerConnect like this:

pawn Код:
public OnPlayerConnect(playerid)
{
   SetPlayerMapIcon(playerid, iconid, Float:x, Float:y, Float:z, markertype, color, style);
   return 1;
}
or if you wanna show it on respective time use this:

pawn Код:
for(new i = 0; i <MAX_PLAYERS; i++)
{
   if(IsPlayerConnected(i))
   {
      SetPlayerMapIcon(i, iconid, Float:x, Float:y, Float:z, markertype, color, style);
   }
   return 1;
}



Re: Is possible the possible function SetPlayerMapIcon for all players? - Antonio2323 - 15.03.2015

But this function show the icons only for playerid?


CreateDynamicMapIcon(X, Y, Z, type, color, worldid, inteirorid, playerid, streamdistance)


Re: Is possible the possible function SetPlayerMapIcon for all players? - Luis- - 15.03.2015

Yeah, that's optional, set it to -1 to show it for all.

Streamer Link.
Код:
CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);



Re: Is possible the possible function SetPlayerMapIcon for all players? - Antonio2323 - 15.03.2015

CreateDynamicMapIcon(X, Y, Z, type, color, worldid, inteirorid, playerid, streamdistance)

What is streamdistance?


Re: Is possible the possible function SetPlayerMapIcon for all players? - CalvinC - 15.03.2015

The distance to show the map icon at.
Using streamer will only show the map icon if you're in a certain range of it, to avoid reaching the 100-map icon limit