public OnPlayerText(playerid, text[])
{
new string[150];
format(string, sizeof(string), "%s says: %s", PlayerName(playerid), text);
ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
return 1;
}
public OnPlayerText(playerid, text[])
{
new string[144];
format(string, sizeof(string), "%s says: %s", PlayerName(playerid), text);
ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
return 0;
}
|
Returning 0 in this callback will stop the text from being sent to all players. |
|
Код:
public OnPlayerText(playerid, text[])
{
new string[144];
format(string, sizeof(string), "%s says: %s", PlayerName(playerid), text);
ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
return 0;
}
Text longer than 144 characters will not show in ClientMessage & ChatBubble |
|
Код:
public OnPlayerText(playerid, text[])
{
new string[144];
format(string, sizeof(string), "%s says: %s", PlayerName(playerid), text);
ProxDetector(30.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
SetPlayerChatBubble(playerid,string,COLOR_WHITE,5.0,5000);
return 0;
}
Text longer than 144 characters will not show in ClientMessage & ChatBubble Also you might want a different format for your chatbbuble string instead, to not show the player name as the chat bubble appears above the player name, unless you hide the name tags.. |