[HELP]Player Chat Format
#6

Use something like this:

pawn Код:
public OnPlayerText(playerid, text[])
{
new String[128];
GetPlayerName(playerid, String, sizeof(String));
format(String, sizeof(String), "%s [%d]: {FFFFFF}%s", String, playerid, text);
Message(String);
return 0;
}
Then define this public:

pawn Код:
forward Message(const string[]);
public Message(const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1) SendClientMessage(i, GetPlayerColor(i), string);
}
return 1;
}
Good luck
Reply


Messages In This Thread
[HELP]Player Chat Format - by ROXYhunter - 09.08.2014, 04:05
Re: [HELP]Player Chat Format - by youssefehab500 - 09.08.2014, 04:09
Re: [HELP]Player Chat Format - by Affan - 09.08.2014, 04:15
Re: [HELP]Player Chat Format - by ROXYhunter - 09.08.2014, 17:18
Re: [HELP]Player Chat Format - by youssefehab500 - 10.08.2014, 20:11
Answer - by Ygzeb - 10.08.2014, 21:11
Re: [HELP]Player Chat Format - by ROXYhunter - 11.08.2014, 09:09
Re: [HELP]Player Chat Format - by Stinged - 11.08.2014, 09:16
Re: [HELP]Player Chat Format - by ROXYhunter - 11.08.2014, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)