OnPlayerText problem.
#1

In OnPlayerText (Gamemode)
Messages in Team:
Код:
	if(text[0] == '!')
	{
		GetPlayerName(playerid,string,sizeof(string));
		format(string,sizeof(string),"TEAM: %s [ID:%d]: %s",string,playerid,text[1]);
	        for(new i = 0; i < MAX_PLAYERS; i++)
		{
 		if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
		}
		return 0;
	}
The code working good.

But if you added a code to display the name winged ID
In OnPlayerText (FS Admin)
Код:
new string2[2500];
new Nombre[MAX_PLAYER_NAME]; GetPlayerName(playerid,Nombre,sizeof(Nombre));
format(string2, sizeof(string2), ""cblanco"[ID:%d]: "cblanco"%s", playerid, text);
SendPlayerMessageToAll(playerid ,string2); SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 12000);
}
No let me speak for the Chat Team Solution?[/quote]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)