Only team mates show.
#1

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.
Reply
#2

Well, Can you specific your question more? What do you exactly mean?
Reply
#3

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.
Reply
#4

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
Reply
#5

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
Reply
#6

Add this function when player spawn
PHP код:
SetPlayerMarkerForPlayer(playeridshowplayeridcolor); 
where "showplayerid" will be his team mates. i mean:

PHP код:
for(new 0GetPlayerPoolSize(); <= ji++)
{
    if(
gTeam[playerid] == gTeam[i])
       
SetPlayerMarkerForPlayer(playeridicolor);

+Rep me if i helped you...
Reply
#7

Quote:
Originally Posted by DragonZafiro
Посмотреть сообщение
Add this function when player spawn
PHP код:
SetPlayerMarkerForPlayer(playeridshowplayeridcolor); 
where "showplayerid" will be his team mates. i mean:

PHP код:
for(new 0GetPlayerPoolSize(); <= ji++)
{
    if(
gTeam[playerid] == gTeam[i])
       
SetPlayerMarkerForPlayer(playeridicolor);

+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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)