16.04.2012, 12:02
how to script chat id?
example:
Test(ID:0): Hi
Not:
TestID:0) Hi
example:
Test(ID:0): Hi
Not:
TestID:0) Hi
public OnPlayerText( playerid, text[] )
{
new string[128], VBName[MAX_PLAYER_NAME];
GetPlayerName(playerid, VBName, MAX_PLAYER_NAME);
format(string, sizeof(string),"{%h}%s[ID:%d]:{FFFFFF} %s" ,GetPlayerColor(playerid) >>> 8, VBName,playerid,text);
SendClientMessageToAll(-1,string);
SetPlayerChatBubble(playerid, text, COLOR_WHITE, 100.0, 10000);
return 0;
}
public OnPlayerText(playerid, text[])
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s(ID:%d): {FFFFFF}%s", name, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), str);
return 0;
}
pawn Код:
|
pawn Код:
|