Raised This Month: $51 Target: $400
 12% 

i need help with color chat (simple)


Post New Thread Reply   
 
Thread Tools Display Modes
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 03-15-2017 , 17:35   Re: i need help with color chat (simple)
Reply With Quote #11

nevermind
Solved
Thanks for all that tried to help me.
bakir123 is offline
Send a message via Skype™ to bakir123
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 03-15-2017 , 17:43   Re: i need help with color chat (simple)
Reply With Quote #12

Quote:
Originally Posted by nea View Post
because 'say nextmap' not hooked by plugin this plugin, the plugin who hook it is nextmap.amxx
u can edit this message in nextmap.amxx

here's the code u can change in nextmap.sma
PHP Code:
..
public 
sayNextMap()
{
    new 
name[32]
    
    
getNextMapName(namecharsmax(name))
    
client_print(0print_chat"%L %s"LANG_PLAYER"NEXT_MAP"name)
}

.. 
change this code to :
PHP Code:
..
public 
sayNextMap()
{
    new 
name[32]
    
    
getNextMapName(namecharsmax(name))
    
client_print_color(0,print_team_red"^4%L ^3%s",LANG_PLAYER"NEXT_MAP"name)
}
.. 
so now it must be colored.

Thanks you , but i still need one more thing

look to this code

PHP Code:
    if(key == 1)
    {
        
g_bChangeInNew true
        
new best 0
        
        
if (!g_yesNoVote)
        {
            new 
g_voteCount[4]
            for (new 
02; ++a)
            if (
g_voteCount[a] > g_voteCount[best])
            
best a
        
}

        
set_cvar_string("amx_nextmap"g_optionName[best])
        
        
ColorChat(0,GREY"^4[ZP]^1 This's the last round, The next map will be^4 %s"g_optionName[best])
        
        return 
PLUGIN_HANDLED
    

This code from adminvote that i edited, ok ?
after map voted, the result is g_optionName[best] , well ?
i want when this vote end, see in nextmap " = g_optionName[best]
well ?
i added this code

PHP Code:
set_cvar_string("amx_nextmap"g_optionName[best]) 
the problem , the result is ; playing map, not the next , i want to type next map that came from admin vote (g_optionName[best])

i can't understand why it give name of map i playing , not the next

do you have any idea for that?
bakir123 is offline
Send a message via Skype™ to bakir123
nea
Junior Member
Join Date: Jan 2017
Old 03-15-2017 , 17:56   Re: i need help with color chat (simple)
Reply With Quote #13

Can u give me all code of adminvote
because in my version is different

Last edited by nea; 03-15-2017 at 17:56.
nea 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 20:50.


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