28.07.2017, 14:05
Hai!
you did write the params in a wrrong way
SetPlayerMarkerForPlayer(playerid, showplayerid, color);
playerid The player that will see the player's changed blip/nametag color
showplayerid The player whose color will be changed
you did write the params in a wrrong way
SetPlayerMarkerForPlayer(playerid, showplayerid, color);
playerid The player that will see the player's changed blip/nametag color
showplayerid The player whose color will be changed
PHP код:
stock AdjustMarkers(playerid)
{
for(new i =0; i< MAX_PLAYERS; i++)
{
if(!IsPlayerNPC(i))
{
if(GPM(playerid)==1 && GPM(i)==1)
{
SetPlayerMarkerForPlayer(i, playerid, 0x85170255DD);
}
else
{
SetPlayerMarkerForPlayer(i, playerid, ( GetPlayerColor( i ) & 0xFFFFFF00 ));
}
}
else
{
SetPlayerMarkerForPlayer(i, playerid, ( GetPlayerColor( i ) & 0xFFFFFF00 ));
}
}
}