SetPlayerChatBubble
Description:
Function SetPlayerChatBubble creates a chat bubble above a player's name tag.
Function SetPlayerChatBubble was added in 0.3a and will not work in earlier versions! |
You can't see your own chatbubbles. The same applies to attached 3D text labels. |
|
Parameters:
(playerid, text[], color, Float:drawdistance, expiretime)
int | playerid | The player which should have the chat bubble. |
string | text | The text to display. |
int | color | The text color. |
float | drawdistance | The distance from where players are able to see the chat bubble. |
int | expiretime | The time in miliseconds the bubble should be displayed for. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. This means the player specified does not exist.
Examples:
public OnPlayerText(playerid, text[]) { SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000); return 1; }