Only team mates show. -
karoliko - 16.04.2016
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.
Re: Only team mates show. -
XtremeRz - 16.04.2016
Well, Can you specific your question more? What do you exactly mean?
Re: Only team mates show. -
karoliko - 16.04.2016
Quote:
Originally Posted by XtremeRz
Well, Can you specific your question more? What do you exactly mean?
|
If you are in Police team, you can only see the players who are in the same team as you (Police).
Same if you are Terrorist, you can only see Terrorist players on minimap.
EDIT: If its possible, show the enemyґs team player when shot only.
Re: Only team mates show. -
StR_MaRy - 16.04.2016
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
Re: Only team mates show. -
karoliko - 16.04.2016
Quote:
Originally Posted by StR_MaRy
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
|
DUDE
PLAYER - TEAM POLICE, ONLY CAN SEE POLICE PLAYERS ON MINIMAP (COLOR BLUE)
PLAYER - TERRORIST TEAM, ONLY CAN SEE TERRORISTS PLAYERS ON MINIMAP (COLOR RED)
ONLY WHEN ENEMYS TEAM PLAYER SHOW IT WILL BE SHOWED ON MINIMAP
TEAM1 (POLICE) Shot and TEAM2 (TERRORIST) Can see the mark,point,player (whatever you call it) on map
Respuesta: Only team mates show. -
DragonZafiro - 17.04.2016
Add this function when player spawn
PHP код:
SetPlayerMarkerForPlayer(playerid, showplayerid, color);
where "showplayerid" will be his team mates. i mean:
PHP код:
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(gTeam[playerid] == gTeam[i])
SetPlayerMarkerForPlayer(playerid, i, color);
}
+Rep me if i helped you...
Re: Respuesta: Only team mates show. -
karoliko - 17.04.2016
Quote:
Originally Posted by DragonZafiro
Add this function when player spawn
PHP код:
SetPlayerMarkerForPlayer(playerid, showplayerid, color);
where "showplayerid" will be his team mates. i mean:
PHP код:
for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
{
if(gTeam[playerid] == gTeam[i])
SetPlayerMarkerForPlayer(playerid, i, color);
}
+Rep me if i helped you...
|
Thanks a lot, didnґt taste it but i will tell you when i will.
There is possible make enemy team show when they shot?
PD: + REP.