a little question ( playermarkers)
#1

First of all, i know i havnt searched, but i havnt seen this anywhere so here it comes.

So my idea is, is it possible to make like, if u make a team called... Team_Cops, is it possible to only team_cops will see orther cops? but no orthers players?
im not sure, but i think i seen it before
Reply
#2

http://forum.sa-mp.com/index.php?act...Btopic=34759.0

Next time use search, etc.
Reply
#3

I prefer it like this:

Код:
	public OnPlayerConnect(playerid)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			ShowPlayerNameTagForPlayer(playerid, i, ( GetPlayerColor(playerid) & 0xFFFFFF00 ));
			ShowPlayerNameTagForPlayer(i, playerid, ( GetPlayerColor(playerid) & 0xFFFFFF00 ));
		}
		return 1;
	}
Then OnPlayerSpawn:
Код:
	public OnPlayerSpawn(playerid)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(PlayerTeam[playerid] == YOUR_TEAM_ID) // personalize this....
			{
				SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(i));
				SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(i));
			}
			else
			{
				SetPlayerMarkerForPlayer(playerid, i, ( GetPlayerColor(playerid) & 0xFFFFFF00 ));
				SetPlayerMarkerForPlayer(i, playerid, ( GetPlayerColor(playerid) & 0xFFFFFF00 ));
			}
		}
		return 1;
	}
Reply
#4

thank whiteagle!
Reply
#5

Quote:
Originally Posted by GrayExodus
thank whiteagle!
You're Welcome ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)