help me please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me please (
/showthread.php?tid=121135)
help me please -
AsAsIn2 - 15.01.2010
hello .. I try to make some time to chat to appear on behalf of the faction in which color you are, but I think it's the system fail the stunt .. that I can help?
like in this photo
Re: help me please -
AsAsIn2 - 15.01.2010
srry for double post
this photo
Re: help me please -
Joe Staff - 15.01.2010
Standard chat color is based on the player's color.
SetPlayerColor(playerid,color)
LOL!!!!!!!!!!!!!!!!!!!!!!!!!!!one post 1337
Re: help me please -
AsAsIn2 - 15.01.2010
i don't understant what I have to do.. can you give me a example ?
Re: help me please -
Joe Staff - 15.01.2010
If you want the color on the chat to change you have to change the color of the player's name.
Here's an example of a gamemode that would make all players red once they connect to the server.
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid,0xFF0000FF,");
return 1;
}
Re: help me please -
AsAsIn2 - 15.01.2010
So I want each player to have color in chat as the faction color
ex: i'm fbi , tony is taxi driver
AsAsIn: hy man
tony: hy
Re: help me please -
AsAsIn2 - 16.01.2010
can anyone help me?
Re: help me please -
KnooL - 16.01.2010
OnPlayerSpawn:
pawn Код:
SetPlayerToTeamColor(playerid);
At the bottom:
pawn Код:
forward SetPlayerToTeamColor(playerid);
public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_VAGOS) {
SetPlayerColor(playerid,COLOR_YELLOW);
} else if(gTeam[playerid] == TEAM_BALLAS) {
SetPlayerColor(playerid,COLOR_PINK);
}
}
gteam = the teams
replace COLOR_YELOW or COLOR_PINK with your own colors.
Re: help me please -
AsAsIn2 - 16.01.2010
Код:
C:\Documents and Settings\dany\Desktop\TEST SERVER\gamemodes\gf.pwn(5878) : error 017: undefined symbol "TEAM_YAKUZA"
gives me error
i have to write something else of team_ ?
Re: help me please -
MadeMan - 16.01.2010
How do you define your teams? How do you know in what team player is?