easy!!! help!!!! -
TheDiscussionCafe - 28.04.2012
i have this for wanted level colours:
pawn Код:
public WantedLevelColor(playerid)
{
new pwl = GetPlayerWantedLevel(playerid);
if(pwl == 6)
{
SetPlayerColor(playerid, COLOR_RED);
}
if(pwl == 5)
{
SetPlayerColor(playerid, COLOR_ORANGE);
}
if(pwl == 4)
{
SetPlayerColor(playerid, COLOR_ORANGE);
}
if(pwl == 3)
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
if(pwl == 2)
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
if(pwl == 1)
{
SetPlayerColor(playerid, COLOR_YELLOW);
}
if(pwl == 0)
{
SetPlayerToTeamColor(playerid);
}
return 1;
}
how i make when Team_Civi see any level, they are all COLOR_WHITE ?
Re: easy!!! help!!!! -
Crazymax - 28.04.2012
you mean the player's marker?
you want civilians to see all white but cop to see wanted's?
this
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Re: easy!!! help!!!! -
TheDiscussionCafe - 28.04.2012
Quote:
Originally Posted by Crazymax
|
NOOOO!!! look at my code above. it clearly says WantedLevelColor
Re: easy!!! help!!!! -
DonWade - 28.04.2012
if(GetPlayerWantedLevel(playerid) == 0)
{
SetPlayerColor(playerid,COLOR_WHITE);
}
This ? :C
Re: easy!!! help!!!! -
The DeLuca - 28.04.2012
You want all civilians to still see them as white? Then simply check if the player is on that team and if so, add return 1; within the brackets. Then it'll only set the color if the players are NOT civilians.
That help?
Re: easy!!! help!!!! -
Mark Shade - 28.04.2012
Do u mean when someone kills someone they get a wanted star and their names turn red?
Re: easy!!! help!!!! -
TheDiscussionCafe - 28.04.2012
no i mean only cops can see wanted people with colour. all civilians (Team_Civi) can will see all the wanted and innocent people as white. so they see everyone white except cops.
Re: easy!!! help!!!! -
Jonny5 - 28.04.2012
Quote:
Originally Posted by The DeLuca
You want all civilians to still see them as white? Then simply check if the player is on that team and if so, add return 1; within the brackets. Then it'll only set the color if the players are NOT civilians.
That help?
|
stop bumping... its annoying!
this IS YOUR ANSWER
it dont get much better than this, besides maybe someone writing your code for you.
do like they said
at the top of the function check and see if player is not the Cops Team
if they are not, simply return 1;
pawn Код:
if(playerteam != copteam) return 1;
and use this
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
to set the MarkerColor!
Re: easy!!! help!!!! -
TheDiscussionCafe - 28.04.2012
Quote:
Originally Posted by Jonny5
stop bumping... its annoying!
this IS YOUR ANSWER
it dont get much better than this, besides maybe someone writing your code for you.
do like they said
at the top of the function check and see if player is not the Cops Team
if they are not, simply return 1;
pawn Код:
if(playerteam != copteam) return 1;
and use this https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
to set the MarkerColor!
|
are u fucking stupid? someone already sayd setplayermarker and i said it was NOT the player marker!!! can you read?! and if you cant help please dont post. your wasting my time. i already know to add if(playerteam != Team_Cop) . if your goin to help, i need what i said in op!
Re: easy!!! help!!!! -
Jonny5 - 28.04.2012
well IM NOT STUPID,
well maybe i am for even considering helping you after such an insult but no lost sleep here...
you give this function of setting a players color.
are we talking about chat color or the color on the radar here?
i dont get what your requesting.
if your talking about chat color then say so
if your talking about the radar color then
the link above is what you need,