SA-MP Forums Archive
How to do it? +Rep - 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)
+--- Thread: How to do it? +Rep (/showthread.php?tid=637764)



How to do it? +Rep - CheckItOut - 20.07.2017

I want only my team players can see my marker and tagname, how to do it? I try but faild...


Re: How to do it? +Rep - Graber - 21.07.2017

How many teams do you have?


Re: How to do it? +Rep - coool - 21.07.2017

PHP код:
new playerteam GetPlayerTeam(playerid); //Storing player team in a variable.
for(new iGetPlayerPoolSize(); <= ji++) //Looping through every connected player.
{
    if(
playerteam == GetPlayerTeam(i)) continue; //If both of the player's team is same, then  continue.

    
SetPlayerMarkerForPlayer(playeridi0); //If not, then Set marker to 'Not show'.
    
ShowPlayerNameTagForPlayer(playeridi0); //Same with name tag.