Raised This Month: $ Target: $400
 0% 

Health, Armor, money


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 10-22-2021 , 16:20   Re: Health, Armor, money
Reply With Quote #3

Quote:
Originally Posted by CryWolf View Post
PHP Code:
public administrator(id
{
    new 
szName 33 ];
    
get_user_name idszNamecharsmax szName ) );

        if(
get_user_flags(id) & ADMIN_SLAY)
        {
            
CC_SendMessage(0"%s &x01%s &x03Connected in the &x04Server!"szName)
        }
        else if(
get_user_flags(id) & ADMIN_LEVEL_Z)
    {
        
CC_SendMessage(0"%s &x01%s &x03Connected in the &x04Server!"szName)
    }

You can also think to use , tought this needs that amxmisc.inc to be included (#include amxmisc)
PHP Code:
switch ( get_user_flags id ) )
    case 
1ADMIN_SLAY
    
{
        
message
    
}
    case 
2ADMIN_LEVEL_Z
    
{
        
message
    

And for when he leaves the server use
PHP Code:
public client_disconnected id )
{
    new 
szName [33];
    
get_user_name (idszNamecharsmax szName ) );

    
CC_SendMessage(0"%s &x01%s &x03Has Leaved the &x04Server!"szName)

Thank you for ur help !
__________________
<b>IP : <font color=Red>93.115.53.168:27017</font></b>
<b>Founder : <font color=Cyan>YusoChan-</font></b>
Yusochan 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 11:29.


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