SA-MP Forums Archive
Connection Color - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Connection Color (/showthread.php?tid=472635)



Connection Color - BodyBoardVEVO - 29.10.2013

Hello, SA-MP players!


Well, i today went into 1 server, havent seen anything like this, so i was checking all around BUT didnt find how to change this.


Well, there is Connected to [ENG]Colt's Cops 'N' Robbers, in Cops And Robbers is color, and if i press " TAB " to see online players, there isnt grey wroten, but red and blue color, how i can make it ?

Sorry For English.


Re: Connection Color - Konstantinos - 29.10.2013

https://sampwiki.blast.hk/wiki/Colour_Em...olor_embedding

pawn Код:
public OnPlayerConnect( playerid )
{
    SendClientMessage( playerid, -1, "{FFFF00}Welcome {FF00FF} to {00FF00}a {00FFFF}SA-MP {0000F}server!" );
    return 1;
}
The text will be colorful for each word.


Re: Connection Color - BodyBoardVEVO - 29.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Colour_Em...olor_embedding

pawn Код:
public OnPlayerConnect( playerid )
{
    SendClientMessage( playerid, -1, "{FFFF00}Welcome {FF00FF} to {00FF00}a {00FFFF}SA-MP {0000F}server!" );
    return 1;
}
The text will be colorful for each word.
You didnt understand me...




Re: Connection Color - Konstantinos - 29.10.2013

I see. Honestly, I don't know how he did it.

What I would do was to clear the chat on connect and then show my own client message (same texts and colors) as the picture.


Re: Connection Color - Luis- - 29.10.2013

He probably did something like this "{FF0000}Server Name" as his server's name.


Re: Connection Color - BodyBoardVEVO - 29.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I see. Honestly, I don't know how he did it.

What I would do was to clear the chat on connect and then show my own client message (same texts and colors) as the picture.
Here are picture when i press " TAB "




Re: Connection Color - Konstantinos - 29.10.2013

Quote:
Originally Posted by Luis-
Посмотреть сообщение
He probably did something like this "{FF0000}Server Name" as his server's name.
You're right, it works.

pawn Код:
public OnGameModeInit( )
{
    SendRconCommand( "hostname Test {FF0000}Server" );
    return 1;
}
on the chat, I didn't try with TAB. Hold on..

EDIT: It's shown colorful at the TAB too.

EDIT2: It's cool but with {RRGGBB} in the hostname (from samp.exe) is kind of failure.


Re: Connection Color - BodyBoardVEVO - 29.10.2013

Quote:
Originally Posted by Luis-
Посмотреть сообщение
He probably did something like this "{FF0000}Server Name" as his server's name.
You mean in server.cfg or in gamemode hostname ? {FFCC00}blablablbabla {FF00FF}blabla... ?


Re: Connection Color - PrivatioBoni - 29.10.2013

Notice the server name on the SAMP list. It has colour tags, e.g. it has {FFFFFF}

ED: Way too late, sorry.


Re: Connection Color - BodyBoardVEVO - 29.10.2013

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
Notice the server name on the SAMP list. It has colour tags, e.g. it has {FFFFFF}

ED: Way too late, sorry.
Well, ye...
Than never mind!
I wont use this, if all players will see HEX color codes on SAMP server list.




NOTE: I will give +rep to all, after 24 hours Now i can't.