Raised This Month: $32 Target: $400
 8% 

Health, Armor, money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 10-22-2021 , 15:30   Health, Armor, money
Reply With Quote #1

Can u add also a msg when he/she leaves the server ?

PHP Code:
 #include <amxmodx> 
#include <amxmisc> 
#include <cromchat>

new PLUGIN[] = "Welcome Msg"
new VERSION[] = "2.0"
new AUTHOR[] = "YusoChan-"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
CC_SetPrefix("&x01[&x04ADMIN&x01]");
}

public 
client_putinserver(id)

{
    
set_task(3.0,"administrator",id)
}

public 
administrator(id
{
    if(
get_user_flags(id) & ADMIN_SLAY)
    {
        new 
Szname[32]
        
get_user_name(idSzname31)
        
CC_SendMessage(0"%s &x01%s &x03Connected in the &x04Server!"Szname)
    }

__________________
<b>IP : <font color=Red>93.115.53.168:27017</font></b>
<b>Founder : <font color=Cyan>YusoChan-</font></b>

Last edited by Yusochan; 10-22-2021 at 15:36.
Yusochan is offline
CryWolf
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 10-22-2021 , 15:53   Re: Health, Armor, money
Reply With Quote #2

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)

__________________
I dont walk trough this world with fear in my heart.
www.dark-arena.com L4D, CS1.6, CZ Servers
CryWolf is offline
Send a message via MSN to CryWolf Send a message via Yahoo to CryWolf
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
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-23-2021 , 10:27   Re: Health, Armor, money
Reply With Quote #4

Leaved => left

Grammar committed death.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-23-2021 at 10:29.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Yusochan
Member
Join Date: Sep 2021
Location: Algeria
Old 10-23-2021 , 14:26   Re: Health, Armor, money
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Leaved => left

Grammar committed death.
Yeah, lmao
__________________
<b>IP : <font color=Red>93.115.53.168:27017</font></b>
<b>Founder : <font color=Cyan>YusoChan-</font></b>
Yusochan is offline
Reply


Thread Tools
Display Modes

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 05:22.


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