18.05.2013, 15:12
I'm trying to make it shows the playerid in front of their name
it sends the message 2 times
"%s[%d]: %s"
"%s: %s"
pawn Код:
public OnPlayerText(playerid, text[])
{
GetPlayerName(playerid,Nam,sizeof(Nam));
if(PlayerData[playerid][Member] == -255)
{
format(query,sizeof(query),"%s[%d]: %s",Nam,playerid,text);
SendClientMessageToAll(-1,query);
}
if(PlayerData[playerid][Member] > 0)
{
format(query,sizeof(query),"%s[%d]:{FFFFFF} %s",Nam,playerid,text);
SendClientMessageToAll(HexToInt(OrgInfo[PlayerData[playerid][Member]][Color]),query);
}
"%s[%d]: %s"
"%s: %s"