16.04.2016, 21:47
Hey, i have started scripting a CS gamemode and i want to make a system that show to player his team mates only and for other team same. Iґm using gTeam, maybe you can help me how to make it. Thanks.
|
Well, Can you specific your question more? What do you exactly mean?
|
|
is like if a player having wanted only Police can see his name with Red so it will be easy to find him in a crowd ... if you want to be more specific
|
SetPlayerMarkerForPlayer(playerid, showplayerid, color);
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(gTeam[playerid] == gTeam[i])
SetPlayerMarkerForPlayer(playerid, i, color);
}
|
Add this function when player spawn
PHP код:
PHP код:
|