28.07.2017, 12:59
Hello,
I've got a small problem with NPC's, its that i cant make their markers invisible on minimap.
I can't turn off the markers with ShowPlayerMarkers because i've got a minigame where i want markers on (npc's arent in that minigame), i've used a small function to do the job and it works, but the problem is, npc's markers still show as white (even tho i set their colour to white).
function (on spawn):
setting npc's color on spawn:
Anyone got any idea how can i make the colour's invisible?
I've got a small problem with NPC's, its that i cant make their markers invisible on minimap.
I can't turn off the markers with ShowPlayerMarkers because i've got a minigame where i want markers on (npc's arent in that minigame), i've used a small function to do the job and it works, but the problem is, npc's markers still show as white (even tho i set their colour to white).
function (on spawn):
PHP код:
stock AdjustMarkers(playerid)
{
for(new i =0; i< MAX_PLAYERS; i++)
{
if(!IsPlayerNPC(i))
{
if(GPM(playerid)==1 && GPM(i)==1)
{
SetPlayerMarkerForPlayer(playerid, i, 0x85170255DD);
}
else
{
SetPlayerMarkerForPlayer(playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ));
}
}
else
{
SetPlayerMarkerForPlayer(playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ));
}
}
}
PHP код:
if(IsPlayerNPC(playerid))
{
SetPlayerColor(playerid,0xFFFFFF00);
}