Question about homie icon -
verlaj - 31.10.2012
Is it possible to to hide player color for enimes and show it only for Homies,
For example if GetPlayerTeam = Grove
then show player color green for groves
else
Hide// Hide playercolor for rivals like ballas and stuff
I need a script like that
Re: Question about homie icon -
[HK]Ryder[AN] - 31.10.2012
You can set it NOT to show the name for rivals and show it to the groves..no name showing = no color showing..
you can show the name to specifc players using ShowPlayerNameTagForPlayer
if you are talking about the map icons you can show them to your homies only using SetPlayerMarkerForPlayer
Re: Question about homie icon -
verlaj - 31.10.2012
Can you show me the script, its kinda advance for me.
Re: Question about homie icon -
[HK]Ryder[AN] - 31.10.2012
tell me your gTeam variables.
Re: Question about homie icon -
verlaj - 31.10.2012
Well i am not that much noob, i can understand but still
here
Код:
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_SWAT 4
#define TEAM_AZTECS 5
Re: Question about homie icon -
[HK]Ryder[AN] - 31.10.2012
not this..
are you using
new gTeam[MAX_PLAYERS] or something?
Re: Question about homie icon -
verlaj - 31.10.2012
Yep i am using it.
Re: Question about homie icon -
[HK]Ryder[AN] - 31.10.2012
cool.
heres the code..paste it wherver u like..most probable onplayerspawn
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++;)
{
if(gTeam[i] == TEAM_GROVE && gTeam[playerid] == TEAM_GROVE)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
4}
else
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
if(gTeam[i] == TEAM_BALLAS && gTeam[playerid] == TEAM_BALLAS)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
4}
else
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
if(gTeam[i] == TEAM_VAGOS && gTeam[playerid] == TEAM_VAGOS)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
4}
else
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
if(gTeam[i] == TEAM_SWAT && gTeam[playerid] == TEAM_SWAT)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
4}
else
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
if(gTeam[i] == TEAM_AZTECS && gTeam[playerid] == TEAM_AZTECS)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
4}
else
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
This is for the name tag
for the map icons do
pawn Код:
for(new i=0;i<MAX_PLAYERS;i++;)
{
if(gTeam[i] == TEAM_GROVE && gTeam[playerid] == TEAM_GROVE)
{
SetPlayerMarkerForPlayer(i, playerid, /*green color most probably..*/);
}
if(gTeam[i] == TEAM_BALLAS && gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerMarkerForPlayer(i, playerid, /*color code*/);
}
if(gTeam[i] == TEAM_VAGOS && gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerMarkerForPlayer(i, playerid, /*color code.*/);
}
if(gTeam[i] == TEAM_SWAT && gTeam[playerid] == TEAM_SWAT)
{
SetPlayerMarkerForPlayer(i, playerid, /*color code.*/);
}
if(gTeam[i] == TEAM_AZTECS && gTeam[playerid] == TEAM_AZTECS)
{
SetPlayerMarkerForPlayer(i, playerid, /*color code*/);
}
}
Re: Question about homie icon -
verlaj - 31.10.2012
ty, (removed), but for your efords +rep
Re: Question about homie icon -
[HK]Ryder[AN] - 31.10.2012
didnt get it..:P
and thanks..
add me..you are indian too
EDIT - got it :P