Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

SetPlayerMarkerForPlayer | NPC's

$
0
0
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 Code:

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 Code:

if(IsPlayerNPC(playerid))
    {
        
SetPlayerColor(playerid,0xFFFFFF00);
    } 

Anyone got any idea how can i make the colour's invisible?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>