Connection Color
#1

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.
Reply
#2

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.
Reply
#3

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...

Reply
#4

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.
Reply
#5

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

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 "

Reply
#7

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.
Reply
#8

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... ?
Reply
#9

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

ED: Way too late, sorry.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)