22.02.2012, 16:18
Try this;
pawn Код:
if( realchat )
{
new
msg[ 128 ]
;
if( !gPlayerLogged[ playerid ] )
return 0;
text[0] = toupper(text[0]);
if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
{
new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, TEAM_ORANGE_COLOR, TEAM_GROVE_COLOR, 0x008100AA };
format( msg, 128, "%s", text[ 0 ] );
SetPlayerChatBubble( playerid, msg, Colors[ random( sizeof( Colors ) ) ], 50.0, 5000 );
}
if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
format( msg, 128, "%s", text[ 0 ] );
else {
GetPlayerName( playerid, sendername, 24 );
format( msg, 128, "{247BFF}%s Spune: {FF3F0F}%s", sendername, text[ 0 ] );
ProxDetector( 20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5 );
}
return 0;
}