.SMA teksto keitimo spalva

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
CanyoN1337
Jau perkopė 10 žinučių ribą !
Posts: 16
Joined: 2019 Feb 24 17:15

.SMA teksto keitimo spalva

Post by CanyoN1337 »

Sveiki, kaip .SMA faile pakeisti spalvą ? Tarkim tekstas - "Restartavai savo rezultatus" kaip pakeisti spalvą jog būtų tarkim žalia? pačiame žaidime.

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: .SMA teksto keitimo spalva

Post by psychical »

Kadangi aš taip ir neišmokau naudotis client_print_color tai naudojiesi stock'u...

print_color(0, "!gzalia");

Code: Select all

stock print_color(const id, const input[], any:...){    new Count = 1, Players[MAX_PLAYERS];    static Msg[260]; vformat(Msg, 260, input, 3);     replace_all(Msg, 260, "!g", "^4");    replace_all(Msg, 260, "!y", "^1");    replace_all(Msg, 260, "!t", "^3");     if(id) Players[0] = id; else get_players(Players, Count, "ch"); {        for(new i = 0; i < Count; i++)     {           if(is_user_connected(Players[i]))        {            message_begin(MSG_ONE, get_user_msgid("SayText"), _, Players[i]);            write_byte(Players[i]);            write_string(Msg);            message_end();            }        }    }    return PLUGIN_HANDLED;}

horde
Ar jis surinks 50 žinučių?
Posts: 37
Joined: 2017 Feb 28 11:49

Re: .SMA teksto keitimo spalva

Post by horde »

Code: Select all

client_print_color(id, print_team_default, "^4Restartavai savo rezultatą.")
Ark'xes // firefly.lt

CanyoN1337
Jau perkopė 10 žinučių ribą !
Posts: 16
Joined: 2019 Feb 24 17:15

Re: .SMA teksto keitimo spalva

Post by CanyoN1337 »

Sutvarkyta

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests