Raised This Month: $ Target: $400
 0% 

need help with zp lvl code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-24-2015 , 16:56   Re: need help with zp lvl code
Reply With Quote #2

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.
siriusmd99 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