MapIcon
#1

How to make a mapicon for player, when i put it like this it shows mapicon to everybody, i want it just to show to one player.

Код:
		    new Float:Pos[3];
		    GetDynamicObjectPos(Kontenjer[i],Pos[0],Pos[1],Pos[2]);
		    KontenjerIkona[i] = CreateDynamicMapIcon(Pos[0],Pos[1],Pos[2], 62, -1, -1, -1, -1, 70.0);
	        Ispraznjeno[playerid] = 0;
Reply
#2

Anyone ?
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=229400
Reply
#4

Not working, tried it already.
Reply
#5

IMO you're better off using SetPlayerCheckpoint.
Reply
#6

No, bc there is lots of objects attached to map icons.
Reply
#7

what's the error?
Reply
#8

Its not an error, i just want MapIcon only to be showed to one player, command is connected to a job and now it creates mapicon to allplayers, and i want to show it only to one.
Reply
#9

anyone ?
Reply
#10

Make sure you are using the function correctly, this is the syntax from the streamer thread:

Код:
CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0, style = MAPICON_LOCAL);
As you can see there is a playerid parameter but if you use -1 it will work for all player ids.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)