SetPlayerToTeamColor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetPlayerToTeamColor (
/showthread.php?tid=347755)
SetPlayerToTeamColor -
TheDiscussionCafe - 03.06.2012
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?
Re: SetPlayerToTeamColor -
Jonny5 - 03.06.2012
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.
Re: SetPlayerToTeamColor -
Edward156 - 03.06.2012
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
Re: SetPlayerToTeamColor -
TheDiscussionCafe - 03.06.2012
@jonny - sorry thats not what i mean
@edward - yes thanks so very much! its working!