11.07.2016, 14:27
Hello, i was wondering if its possible to set the marker color, to players team color
Example If someone is in a "red" family, and another one is in a "green" family, but they join the same gangchat
they can see each other on the map. So my question if its possible to make that the markers are the same color
as their TeamColor? (SetPlayerToTeamColor(playerid)
Example If someone is in a "red" family, and another one is in a "green" family, but they join the same gangchat
they can see each other on the map. So my question if its possible to make that the markers are the same color
as their TeamColor? (SetPlayerToTeamColor(playerid)
pawn Код:
stock ShowGang(playah,gang)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pGang] == gang && !PlayerInfo[i][pBanished])
{
SetPlayerMarkerForPlayer(i, playah, 0xFFFFFFAA);
SetPlayerMarkerForPlayer(playah, i, 0xFFFFFFAA);
}
}
return 1;
}