Raised This Month: $ Target: $400
 0% 

green text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
illusionalp
Member
Join Date: Aug 2012
Old 09-01-2012 , 18:08   green text
Reply With Quote #1

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,
illusionalp is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 09-01-2012 , 18:10   Re: green text
Reply With Quote #2

Try this:
http://forums.alliedmods.net/showthread.php?p=851160
Torge is offline
Old 09-01-2012, 19:04
SpaceRip
This message has been deleted by SpaceRip. Reason: Useless
illusionalp
Member
Join Date: Aug 2012
Old 09-01-2012 , 19:23   Re: green text
Reply With Quote #3

Quote:
Originally Posted by SpaceRip View Post
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
illusionalp is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-02-2012 , 07:28   Re: green text
Reply With Quote #4

Here you go.
Attached Files
File Type: sma Get Plugin or Get Source (resetscore.sma - 570 views - 2.7 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
illusionalp
Member
Join Date: Aug 2012
Old 09-02-2012 , 09:06   Re: green text
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
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" ?
illusionalp is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-02-2012 , 09:17   Re: green text
Reply With Quote #6

sv_rsdisplay 1 in amxx.cfg
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
illusionalp
Member
Join Date: Aug 2012
Old 09-02-2012 , 09:36   Re: green text
Reply With Quote #7

thanks it is working
illusionalp is offline
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 08:22.


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