AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   changing StatusText colors (https://forums.alliedmods.net/showthread.php?t=24530)

Emp` 02-25-2006 13:50

changing StatusText colors
 
hi,

is there anyway to change the color of StatusTexts? (the text where if you aim at a teammate it say "Friend : Name Health : 100%" in your team color)

ive tried
Code:

        if(g_isTesting[id]) iLen += format(message[iLen],(255-iLen),"^x01 1 :^x02 2 :^x03 3 :^x04 4")
and it just comes out as 1 : 2 : 3 : 4 in the normal color

any help is appreciated

VEN 02-26-2006 14:19

I believe: no.

Charr 02-27-2006 15:54

If you can block the StatusText, you can replace it with your own hudmessage that you can set color on.

Emp` 02-27-2006 17:33

so how do i get what the status text is and stuff?

v3x 02-27-2006 17:50

Code:
#include <amxmodx> public plugin_init() {   register_plugin("StatusText logger" , "0.1" , "v3x");   register_event("StatusText" , "Event_StatusText" , "b"); } public Event_StatusText(id) {   new nLineNum = read_data(1);   new szText[164];   read_data(2 , szText , 163);   new szUserName[33];   get_user_name(id , szUserName , 32);   new szOutput[256];   format(szOutput , 255 , "[Begin StatusText logmessage]\   ^nLine number: %d\   ^nText: %s\   ^nPlayer name: %s\   ^n[End StatusText logmessage]" , nLineNum , szText , szUserName);   log_amx(szOutput); }


All times are GMT -4. The time now is 20:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.