Raised This Month: $ Target: $400
 0% 

Scrollmsg color


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-07-2009 , 07:34   Scrollmsg color
Reply With Quote #1

Hey,

change the Color ( orange ) of scrollmsg??
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define SPEED 0.9
#define SCROLLMSG_SIZE    512

new g_startPos
new g_endPos
new g_scrollMsg[SCROLLMSG_SIZE]
new 
g_displayMsg[SCROLLMSG_SIZE]
new 
Float:g_xPos
new g_Length
new g_Frequency

public plugin_init()
{
    
register_plugin("Scrolling Message"AMXX_VERSION_STR"AMXX Dev Team")
    
register_dictionary("scrollmsg.txt")
    
register_dictionary("common.txt")
    
register_srvcmd("amx_scrollmsg""setMessage")
}

public 
showMsg()
{
    new 
g_startPos0

    
while (g_endPos)
        
g_displayMsg[i++] = g_scrollMsg[a++]

    
g_displayMsg[i] = 0

    
if (g_endPos g_Length)
        
g_endPos++

    if (
g_xPos 0.35)
        
g_xPos -= 0.0063
    
else
    {
        
g_startPos++
        
g_xPos 0.35
    
}

    
set_hudmessage(2001000g_xPos0.200SPEEDSPEED0.050.052)
    
show_hudmessage(0"%s"g_displayMsg)
}

public 
msgInit()
{
    
g_endPos 1
    g_startPos 
0
    g_xPos 
0.65
    
    
new hostname[64]
    
    
get_cvar_string("hostname"hostname63)
    
replace(g_scrollMsgSCROLLMSG_SIZE-1"%hostname%"hostname)
    
    
g_Length strlen(g_scrollMsg)
    
    
set_task(SPEED"showMsg"123""0"a"g_Length 48)
    
client_print(0print_console"%s"g_scrollMsg)
}

public 
setMessage()
{
    
remove_task(123)        /* remove current messaging */
    
read_argv(1g_scrollMsgSCROLLMSG_SIZE-1)
    
    
g_Length strlen(g_scrollMsg)
    
    new 
mytime[32]
    
    
read_argv(2mytime31)
    
    
g_Frequency str_to_num(mytime)
    
    if (
g_Frequency 0)
    {
        new 
minimal floatround((g_Length 48) * (SPEED 0.1))
        
        if (
g_Frequency minimal)
        {
            
server_print("%L"LANG_SERVER"MIN_FREQ"minimal)
            
g_Frequency minimal
        
}

        
server_print("%L"LANG_SERVER"MSG_FREQ"g_Frequency 60g_Frequency 60)
        
set_task(float(g_Frequency), "msgInit"123""0"b")
    }
    else
        
server_print("%L"LANG_SERVER"MSG_DISABLED")
    
    return 
PLUGIN_HANDLED

__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-07-2009 , 07:39   Re: Scrollmsg color
Reply With Quote #2

Quote:
set_hudmessage(255, 170, 85, g_xPos, 0.20, 0, SPEED, SPEED, 0.05, 0.05, 2)
thanks ~orange
__________________

anakin_cstrike is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-07-2009 , 08:14   Re: Scrollmsg color
Reply With Quote #3

Quote:
Originally Posted by anakin_cstrike View Post
thanks ~orange
Hey,

Omq, anakin...im blind :-O
WTF.... idk whtas happend 2 me....TY
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:00.


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