Is possible the possible function SetPlayerMapIcon for all players?
#1

Hi,

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

Thanks
Reply
#2

It is possible, using Incognitos streamer.
Reply
#3

Using a loop
Reply
#4

How? help me please...
Reply
#5

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

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;
}
Reply
#7

But this function show the icons only for playerid?


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

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);
Reply
#9

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

What is streamdistance?
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)