SetPlayerToTeamColor
#1

pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if(gTeam[playerid] == Team_Cop)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if(gTeam[playerid] == Team_Army)
    {
        SetPlayerColor(playerid, COLOR_PURPLE);
    }
    if(gTeam[playerid] == Team_FBI)
    {
        SetPlayerColor(playerid, COLOR_BLUE);
    }
    if(gTeam[playerid] >= 5)
    {
        SetPlayerColor(playerid, COLOR_WHITE);
    }
    return 1;
}
hi with above code i want to use it so i know what color it is from what color. but i dont want to chat with those colors! how can i chat with different colors? like when im Team_Cop, i will always chat with a blue name because my team color is blue. i want to change with white if i'm a cop but i want my name to show outside of chat to be blue. how i can do that?
Reply
#2

change the chat colors in OnPlayerText

https://sampwiki.blast.hk/wiki/OnPlayerText
the wiki explains.


EDIT:
actually this might be better
https://sampforum.blast.hk/showthread.php?tid=336052

it shows how to make roleplay chats
with different colors

their is another tutorial call

"Things todo with OnPlayerText"
or something along them lines that will explain this also.
Reply
#3

I think you're talking about this:

https://sampforum.blast.hk/showthread.php?pid=1644577#pid1644577

http://forum.sa-mp.com/showpost.php?...77&postcount=6
Reply
#4

@jonny - sorry thats not what i mean
@edward - yes thanks so very much! its working!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)