easy!!! help!!!!
#1

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

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

Quote:
Originally Posted by Crazymax
Посмотреть сообщение
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
NOOOO!!! look at my code above. it clearly says WantedLevelColor
Reply
#4

if(GetPlayerWantedLevel(playerid) == 0)
{
SetPlayerColor(playerid,COLOR_WHITE);
}

This ? :C
Reply
#5

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

Do u mean when someone kills someone they get a wanted star and their names turn red?
Reply
#7

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

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!
Reply
#9

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!
Reply
#10

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,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)