24.08.2012, 11:02
Quote:
How long can I display a chatbubble? I tried using this, but the text wont appear on his head:
pawn Код:
|
A little example:
pawn Код:
SetTimer( "UpdatePlayerText", 1000, true );
forward UpdatePlayerText( );
public UpdatePlayerText( )
{
for( new f = 0; f < MAX_PLAYERS; f++ )
{
if( IsPlayerConnected( f ) )
{
format(text, sizeof(text), "%s\n%s", RankName(playerid), ClassName(playerid));
Update3DTextLabelText(YOUR_3dTEXT_ID, 0xFFFFFFFF, text); // or just replace it with Chatbubble
}
}
}