Raised This Month: $51 Target: $400
 12% 

Connect message only for the founder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NTXZ
Junior Member
Join Date: Mar 2019
Old 03-24-2019 , 20:13   Connect message only for the founder
Reply With Quote #1

Hello guys , I need a code that shows the following message on chat when this steam id (STEAM_0:0:171705149) connects to the server: [CS] The founder of this server has connected. Someone who can help me one more time? Thank you very much !

Last edited by NTXZ; 03-24-2019 at 20:35.
NTXZ is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-25-2019 , 08:38   Re: Connect message only for the founder
Reply With Quote #2

You can add multiple SteamIDs in the g_szPrivilegedSteamIds string if you want.

PHP Code:
#include < amxmodx >

new const g_szPrivilegedSteamIds[ ] =
{
    
"STEAM_0:0:171705149"
}

new const 
g_szMessage[ ] = "[CS] The founder of this server has connected";

public 
plugin_init( )
{
    
register_plugin"Connect Messages""1.0""DoNii" );
}

public 
client_authorizedid )
{
    new 
szSteamId32 ];
    
get_user_authididszSteamIdcharsmaxszSteamId ) );

    for( new 
isizeof g_szPrivilegedSteamIdsi++ )
    {
        if( 
equalszSteamIdg_szPrivilegedSteamIds] ) )
        {
            
client_print0print_chatg_szMessage );
            break;
        }
        continue;
    }

__________________

Last edited by edon1337; 03-25-2019 at 08:38.
edon1337 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-25-2019 , 09:30   Re: Connect message only for the founder
Reply With Quote #3

I'm sorry, but SteamId should be [35]?
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-25-2019 , 09:37   Re: Connect message only for the founder
Reply With Quote #4

Quote:
Originally Posted by iceeedr View Post
I'm sorry, but SteamId should be [35]?
Not really, the usual SteamID is around 20-25 characters long, so 32 is enough.
__________________
edon1337 is offline
NTXZ
Junior Member
Join Date: Mar 2019
Old 03-25-2019 , 10:43   Re: Connect message only for the founder
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
You can add multiple SteamIDs in the g_szPrivilegedSteamIds string if you want.

PHP Code:
#include < amxmodx >

new const g_szPrivilegedSteamIds[ ] =
{
    
"STEAM_0:0:171705149"
}

new const 
g_szMessage[ ] = "[CS] The founder of this server has connected";

public 
plugin_init( )
{
    
register_plugin"Connect Messages""1.0""DoNii" );
}

public 
client_authorizedid )
{
    new 
szSteamId32 ];
    
get_user_authididszSteamIdcharsmaxszSteamId ) );

    for( new 
isizeof g_szPrivilegedSteamIdsi++ )
    {
        if( 
equalszSteamIdg_szPrivilegedSteamIds] ) )
        {
            
client_print0print_chatg_szMessage );
            break;
        }
        continue;
    }

Thank you, and sorry, but can you put the colored message? pls
NTXZ is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-25-2019 , 11:06   Re: Connect message only for the founder
Reply With Quote #6

Quote:
Originally Posted by iceeedr View Post
I'm sorry, but SteamId should be [35]?
64 actually according to AMXX 1.9.

PHP Code:
#define MAX_AUTHID_LENGTH 64 
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 03-25-2019 , 11:26   Re: Connect message only for the founder
Reply With Quote #7

Quote:
Originally Posted by OciXCrom View Post
64 actually according to AMXX 1.9.

PHP Code:
#define MAX_AUTHID_LENGTH 64 
I was just going to comment on this, the definition of MAX_AUTHID_LENGTH is 64 in amx 1.9.
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-25-2019 , 11:30   Re: Connect message only for the founder
Reply With Quote #8

I haven't seen a SteamID longer than 25 characters.

Quote:
Originally Posted by NTXZ View Post
Thank you, and sorry, but can you put the colored message? pls
Which colorchat are you using?
__________________

Last edited by edon1337; 03-25-2019 at 11:37.
edon1337 is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 03-25-2019 , 11:39   Re: Connect message only for the founder
Reply With Quote #9

Quote:
Originally Posted by NTXZ View Post
Thank you, and sorry, but can you put the colored message? pls
for coloured message you can use color chat or better use cromchat , it is more better

i will try it
__________________
SED LYF !!!
SHIELD755 is offline
NTXZ
Junior Member
Join Date: Mar 2019
Old 03-25-2019 , 13:19   Re: Connect message only for the founder
Reply With Quote #10

Quote:
Originally Posted by edon1337 View Post
I haven't seen a SteamID longer than 25 characters.



Which colorchat are you using?
The server is not mine, but I am part of building it ... I do not have FTP access, I do not know which colorchat it uses
NTXZ is offline
Reply



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 15:15.


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