13.06.2011, 22:55
Hi all you tell me how do you put the id in chat
for(new i = 1; i < MAX_CHAT_LINES-1; i++)
Chat[i] = Chat[i+1];
new ChatSTR[128];
GetPlayerName(playerid,ChatSTR,sizeof(ChatSTR));
format(ChatSTR,128,"[CHAT]%s: %s",ChatSTR, text[0]);
Chat[MAX_CHAT_LINES-1] = ChatSTR;
return 1;
}
It's no doubt that I will be corrected. But what the heck
pawn Код:
|
public OnPlayerText(playerid, text[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new string[128];
new temp[48];
GetPlayerName(playerid, temp, sizeof(temp));
format(string, sizeof(string), "%s (%i) says:{FFFFFF} %s", temp, playerid, text);
SendClientMessage(i, 0xFFFF00AA, string);
}
}
return 0;
}
public OnPlayerText(playerid,text[])
{
new textstring[128];
format(textstring, sizeof(textstring), "[%i] %s", playerid, text);
SendPlayerMessageToAll(playerid, textstring);
return 0;
}
public OnPlayerText(playerid, text[])
{
new string[128], name[24];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s: {FFFFFF}(%d) %s", name, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;
}
What is this? i dont even...
pawn Код:
|