AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   green text (https://forums.alliedmods.net/showthread.php?t=194932)

illusionalp 09-01-2012 18:08

green text
 
i'm looking forward to modify the /rs plugin and i'm trying to make the message that show when you write /rs with green any thoughts how can i do such thing?
any help will be appreciated
regards,

Torge 09-01-2012 18:10

Re: green text
 
Try this:
http://forums.alliedmods.net/showthread.php?p=851160

illusionalp 09-01-2012 19:23

Re: green text
 
Quote:

Originally Posted by SpaceRip (Post 1789095)
is it so fucking hard to create code?

PHP Code:

fzp_printidmessage[], any:... )
{
    static 
buffer[256], iargscount
    argscount 
numargs()

    
vformat(buffercharsmax(buffer), message3)
    
    if (!
id)
    {
        static 
player
        
for (player 1player <= g_maxplayersplayer++)
        {
            if (!
is_user_connected(player))
                continue;

            if (
player == 0)
                continue;
            
            static 
changed[5], changedcount
            changedcount 
0
            
            
// Replace LANG_PLAYER with player id
            
for (2argscounti++)
            {
                if (
getarg(i) == LANG_PLAYER)
                {
                    
setarg(i0player)
                    
changed[changedcount] = i
                    changedcount
++
                }
            }
            
            
            
message_begin(MSG_ONE_UNRELIABLEfzp_msg_saytext_player)
            
write_byte(player)
            
write_string(buffer)
            
message_end()
            
            for (
0changedcounti++)
                
setarg(changed[i], 0LANG_PLAYER)
        }
    }
    else
    {    
        if (
is_user_connected(id))
        {
            
message_begin(MSG_ONEfzp_msg_saytext_id)
            
write_byte(id)
            
write_string(buffer)
            
message_end()
        }
    }


How to use`?
PHP Code:

fzp_print(id"^x01 normal color, ^x04 green color ^x03 team color"

Was it hard???
Deem...

thank you so much to writing the code for me but i don't see how can i add it to this plugin http://forums.alliedmods.net/showthread.php?p=652449
if you can merge it it will be appreciated :)

ConnorMcLeod 09-02-2012 07:28

Re: green text
 
1 Attachment(s)
Here you go.

illusionalp 09-02-2012 09:06

Re: green text
 
Quote:

Originally Posted by ConnorMcLeod (Post 1789428)
Here you go.

thank you so much
you know how can i make the message show for everyone when the player /rs
like "playername has just reset his score" ?

ConnorMcLeod 09-02-2012 09:17

Re: green text
 
sv_rsdisplay 1 in amxx.cfg

illusionalp 09-02-2012 09:36

Re: green text
 
thanks it is working :)


All times are GMT -4. The time now is 08:22.

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