Quote:
Originally Posted by Stanford
So you want his name to appear in the chat as his color?, here's an example:
pawn Код:
public OnPlayerText(playerid, text[]) { if(AccountInfo[playerid][pColor] == 2) // or any number that represents red (u set these things) { new string[128], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername); format(string,sizeof(string), "%s:"#COL_WHITE" %s", playername,text); } SendClientMessageToAll(COLOR_WHITE, string); return 1; }
Set the defintions of the colors.
hint: #COL_WHITE is a 0.3c color.
I hope I helped any feedback would be appreciated!
|
Errors,can you please set it up and I'll +REP you
For all teams:
Код:
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_VAGOS 3
#define TEAM_BARBERS 4
Код:
COLOR_GREEN
COLOR_RED
COLOR_YELLOW
COLOR_BLUE