if (realchat)
{
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
new i;
while (text[++i])
{
if(text[i] > 64 && text[i]< 91) text[i] += 32;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new Colors[] = { COLOR_WHITE, COLOR_YELLOW, COLOR_LIGHTGREEN, TEAM_ORANGE_COLOR, TEAM_GROVE_COLOR, 0x008100AA };
SetPlayerChatBubble(playerid,says: text, Colors[random(sizeof(Colors))], 50.0, 5000);
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), " %s ", text);
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "{247BFF}%s Spune: {FF3F0F}%s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
return 0;
}
return 1;
}
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;
}
Try this;
pawn Код:
|
text[0] = toupper(text[0]);
text[0] = toupper(text[0]);
if i do :D it will appear like this: :d can i make this big too??