Command /asay help me please
#4

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Whaaaaaaaat the fuck. Did you tested your code before posting it? Plus do you know that color are integer?

First, your code can be optimized by using isnull which check if a string is empty or no. If you want to add some color to your text, check that : https://sampwiki.blast.hk/wiki/Colors_List#Color_embedding
PHP код:
CMD:asay(playeridparams[])
{
    new 
string[128];
    if(
isnull(params)) return SendClientMessage(playerid,-1"Use: /asay [message]");
    
format(stringsizeof(string),"Admin %s: %s"Name(playerid), text);
    
SendClientMessageToAll(-1,string);
    return 
1;

HELP ME, I want is to put the colors with just write the name, example: /asay (cyan) Hello community (gray) of samp (red) forum

that one when writing one or with those colors the message appears from the color that I put it.
Reply


Messages In This Thread
Command /asay help me please - by SapMan - 29.03.2018, 05:46
Re: Command /asay help me please - by BulletRaja - 29.03.2018, 06:08
Re: Command /asay help me please - by Dayrion - 29.03.2018, 06:55
Re: Command /asay help me please - by SapMan - 29.03.2018, 15:04
Re: Command /asay help me please - by ivndosos - 29.03.2018, 15:20
Re: Command /asay help me please - by Lokii - 29.03.2018, 15:39
Re: Command /asay help me please - by SapMan - 29.03.2018, 16:02
Re: Command /asay help me please - by rfr - 29.03.2018, 16:06
Re: Command /asay help me please - by SyS - 29.03.2018, 16:09
Re: Command /asay help me please - by Dayrion - 29.03.2018, 16:31

Forum Jump:


Users browsing this thread: 1 Guest(s)