a little question ( playermarkers) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: a little question ( playermarkers) (
/showthread.php?tid=95542)
a little question ( playermarkers) -
Darkstar94 - 04.09.2009
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
Re: a little question ( playermarkers) -
ded - 04.09.2009
http://forum.sa-mp.com/index.php?act...Btopic=34759.0
Next time use search, etc.
Re: a little question ( playermarkers) -
Whiteagle - 04.09.2009
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;
}
Re: a little question ( playermarkers) -
Darkstar94 - 04.09.2009
thank whiteagle!
Re: a little question ( playermarkers) -
Whiteagle - 04.09.2009
Quote:
Originally Posted by GrayExodus
thank whiteagle!
|
You're Welcome ^^