 |
|
Member
Join Date: Sep 2021
Location: Algeria
|

10-22-2021
, 16:20
Re: Health, Armor, money
|
#3
|
Quote:
Originally Posted by CryWolf
PHP Code:
public administrator(id)
{
new szName [ 33 ];
get_user_name ( id, szName, charsmax ( 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 1: ADMIN_SLAY
{
message
}
case 2: ADMIN_LEVEL_Z
{
message
}
And for when he leaves the server use
PHP Code:
public client_disconnected ( id )
{
new szName [33];
get_user_name (id, szName, charsmax ( szName ) );
CC_SendMessage(0, "%s &x01%s &x03Has Leaved the &x04Server!", szName)
}
|
Thank you for ur help !
__________________
|
|
|
|