18.09.2012, 12:48
Galera tou com um poblema, eu coloquei o [ID] na frente do [NICK] mais quando estou no server e falo alguma coisa fica assim exemplo : (amiguinho[ID:1]diz:hauhau) mais eu queria um espaзo entre o nick eo [id:1] vou fazer outro exemplo: (amiguinho [id:0]diz:hauhau) tbm queria q essa parte [ID:1] foзe branco.
eu tenho aki o projeto vou mostrar .
public OnPlayerText(playerid, text[])
{
// Block the player's text if he has been muted
if (APlayerData[playerid][Muted] == true)
{
// Let the player know he's still muted
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[INFO]Vocк ainda esta mudo!");
// Don't allow his text to be sent to the chatbox
return 0;
}
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s[ID:%d]:{FFFFFF} %s", pname, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
eu tenho aki o projeto vou mostrar .
public OnPlayerText(playerid, text[])
{
// Block the player's text if he has been muted
if (APlayerData[playerid][Muted] == true)
{
// Let the player know he's still muted
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[INFO]Vocк ainda esta mudo!");
// Don't allow his text to be sent to the chatbox
return 0;
}
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s[ID:%d]:{FFFFFF} %s", pname, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);