Question about homie icon
#1

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

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

Can you show me the script, its kinda advance for me.
Reply
#4

tell me your gTeam variables.
Reply
#5

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

not this..
are you using
new gTeam[MAX_PLAYERS] or something?
Reply
#7

Yep i am using it.
Reply
#8

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*/);
}
}
Reply
#9

ty, (removed), but for your efords +rep
Reply
#10

didnt get it..:P
and thanks..
add me..you are indian too
EDIT - got it :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)