Raised This Month: $ Target: $400
 0% 

need help with zp lvl code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shady101
Member
Join Date: Nov 2014
Location: USA
Old 12-25-2015 , 23:07   Re: need help with zp lvl code
Reply With Quote #3

Quote:
Originally Posted by siriusmd99 View Post
PHP Code:
public HookSay(id)
{
    static 
message[190]
    
read_args(messagecharsmax(message))
    
remove_quotes(message)
   
    if (
equal(message""))
    return 
PLUGIN_HANDLED;
   
    if (
is_user_alive(id))
        
zp_colored_print(0"^x04%s[-Level %d] [-Reset %d] [-SReset %d]^x02 %s^x01 : %s",(get_user_flags(id) & ADMIN_IMMUNITY) ? "[ADMIN]" "" ,g_level[id], g_reset[id], g_grandreset[id], g_playername[id], message)
    else
        
zp_colored_print(0"^x04%s[Dead]^x03 %s^x01 : %s", (get_user_flags(id) & ADMIN_IMMUNITY) ? "ADMIN" ""g_playername[id], message)
    
    return 
PLUGIN_HANDLED;


This should put [ADMIN] in front of the message.
From the edit i understood that you wanted this.



oh no, i just wanted The admin Name to be Grey/White color, and admin chat to be green
and when player or admin is dead, have the [dead] prefix

i do NOT want [admin] prefix like that

Last edited by shady101; 12-25-2015 at 23:50.
shady101 is offline
 



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 18:13.


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