help me please
#1

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

Reply
#2

srry for double post

this photo

Reply
#3

Standard chat color is based on the player's color.

SetPlayerColor(playerid,color)



LOL!!!!!!!!!!!!!!!!!!!!!!!!!!!one post 1337
Reply
#4

i don't understant what I have to do.. can you give me a example ?
Reply
#5

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;
}
Reply
#6

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

can anyone help me?
Reply
#8

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

Код:
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_ ?
Reply
#10

How do you define your teams? How do you know in what team player is?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)