SA-MP Forums Archive
Map Icons over 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Map Icons over players (/showthread.php?tid=76948)



Map Icons over players - Omega90210 - 08.05.2009

Its easy to put a map icon over a building or a specific point on the map sure enough, but could anyone assist me in placing an icon over a player? Say if the player is driving, the icon will stay on top of him/her on the map at all times.

Im familiar with SetPlayerMapIcon, and i just need help with adding in putting one over multiple players, meaning how can i tell the game to give a person a random icon id between 20 and 30, i really dont want more than 10 icons on the map of other players... no what im saying?


Re: Map Icons over players - CJ101 - 08.05.2009

Код:
forward IconStream(playerid);

public IconStream(playerid)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
new randicon = random(30);
SetPlayerMapIcon(playerid,1,X,Y,Z,randicon,0);
}
also, put in omgamemode init:

Код:
SetTimer("IconStream",1000,true);



Re: Map Icons over players - Rks25 - 08.05.2009

don't forget to keep removing them, else you will get a line of icons, and than ......... crash


Re: Map Icons over players - Dark_Kostas - 08.05.2009

What will happen if there are more than 32 players? This will crash the srv again


Re: Map Icons over players - Think - 08.05.2009

Quote:
Originally Posted by [DK
AzaxYo ]
What will happen if there are more than 32 players? This will crash the srv again
use a streamer


Re: Map Icons over players - Dark_Kostas - 08.05.2009

Quote:
Originally Posted by Pandabeer1337
Quote:
Originally Posted by [DK
AzaxYo ]
What will happen if there are more than 32 players? This will crash the srv again
use a streamer
so whats the purpose of that script after that? we needs something like markers, but with icons