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

Solved [CSGO] OnClientConnect setting rejectmsg?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Austin
Senior Member
Join Date: Oct 2005
Old 09-24-2021 , 19:08   [CSGO] OnClientConnect setting rejectmsg?
Reply With Quote #1

I am returning false in OnClientConnect()
to keep certain players from joining the server and that is working,
but how do I set the reject message they see?

Right now they see this message:
"Connection rejected by game."

Last edited by Austin; 09-25-2021 at 02:01.
Austin is offline
bklol
Member
Join Date: May 2019
Location: on my chair
Old 09-24-2021 , 22:26   Re: [CSGO] OnClientConnect setting rejectmsg?
Reply With Quote #2

maybe using KickClient function
bklol is offline
FAQU
Member
Join Date: Sep 2020
Location: Romania
Old 09-24-2021 , 23:51   Re: [CSGO] OnClientConnect setting rejectmsg?
Reply With Quote #3

PHP Code:
public bool OnClientConnect(int clientchar[] rejectmsgint maxlength)
{
    
strcopy(rejectmsgmaxlength"Message goes here");
    return 
false;

__________________
FAQU is offline
Austin
Senior Member
Join Date: Oct 2005
Old 09-25-2021 , 02:01   Re: [CSGO] OnClientConnect setting rejectmsg?
Reply With Quote #4

Thanks, again!
Austin 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:01.


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