28.07.2017, 14:19
Quote:
As i am using it under onplayerspwan, i want the playerid to see everyone else's color set as invisible.
Your code means, everyone will see that player's color as invisible. |
why not use this vv
PHP код:
public OnPlayerStreamIn(playerid, forplayerid)
{
if(IsPlayerNPC(playerid))
{
SetPlayerMarkerForPlayer(forplayerid, playerid, 0x00000000);
}
else
{
if(!IsPlayerNPC(i))
{
if(GPM(playerid)==1 && GPM(i)==1)
{
SetPlayerMarkerForPlayer(forplayerid, playerid, 0x85170255DD);
}
else
{
SetPlayerMarkerForPlayer(forplayerid, playerid, ( GetPlayerColor( i ) & 0x00000000 ));
}
}
}
return 1;
}
instand of making loop everytime