SetPlayerChatBubble

From SA-MP Wiki

Jump to: navigation, search


SetPlayerChatBubble was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Creates a chat bubble above a player's name tag.


Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)
playeridThe player which should have the chat bubble.
text[]The text to display.
colorThe text color
drawdistanceThe distance from where players are able to see the chat bubble.
expiretimeThe time in miliseconds the bubble should be displayed for.


ReturnsThis function doesn't return a specific value


Example:

public OnPlayerText(playerid, text[])
{
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
    return 1;
}
Personal tools
In other languages