SetPlayerMarkerForPlayer | NPC's
#1

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):
PHP код:
stock AdjustMarkers(playerid)
{    
    for(new 
=0iMAX_PLAYERSi++)
    {
        if(!
IsPlayerNPC(i))
        {
            if(
GPM(playerid)==&& GPM(i)==1)
            {
                
SetPlayerMarkerForPlayer(playeridi0x85170255DD);
            }
            else
            {
                
SetPlayerMarkerForPlayer(playeridi, ( GetPlayerColor) & 0xFFFFFF00 ));
            }    
        }
        else
        {
            
SetPlayerMarkerForPlayer(playeridi, ( GetPlayerColor) & 0xFFFFFF00 ));
        }
        
    }

setting npc's color on spawn:
PHP код:
if(IsPlayerNPC(playerid))
    {
        
SetPlayerColor(playerid,0xFFFFFF00);
    } 
Anyone got any idea how can i make the colour's invisible?
Reply


Messages In This Thread
SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 12:59
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:05
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:13
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:19
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:25
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:29
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 14:36
Re: SetPlayerMarkerForPlayer | NPC's - by Xeon™ - 28.07.2017, 14:41
Re: SetPlayerMarkerForPlayer | NPC's - by NaS - 28.07.2017, 15:12
Re: SetPlayerMarkerForPlayer | NPC's - by iLearner - 28.07.2017, 15:20

Forum Jump:


Users browsing this thread: 5 Guest(s)