Raised This Month: $28 Target: $400
 7% 

Netchan Redirecting to a different Port


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-16-2024 , 10:57   Re: Netchan Redirecting to a different Port
Reply With Quote #11

Save a 'slot' with 'kick message' to tell them try other 'port'.
__________________
DJEarthQuake is offline
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 08-17-2024 , 01:51   Re: Netchan Redirecting to a different Port
Reply With Quote #12

Quote:
Originally Posted by DJEarthQuake View Post
Save a 'slot' with 'kick message' to tell them try other 'port'.
Or he can do to this which it's similar
PHP Code:
client_cmd(id"echo This server has moved to a different port. Please connect to IP:PORT");
client_cmd(id"disconnect"); 
__________________
CS:CZ > CS 1.6

AMXX Plugins/Tutorial:

Tutorial Server Tracker, Prefix CT/T + Admin (Update v1.3)
Ace67 is offline
Tote
Senior Member
Join Date: Jul 2023
Old 08-17-2024 , 04:07   Re: Netchan Redirecting to a different Port
Reply With Quote #13

Quote:
Originally Posted by Ace67 View Post
Or he can do to this which it's similar
PHP Code:
client_cmd(id"echo This server has moved to a different port. Please connect to IP:PORT");
client_cmd(id"disconnect"); 
The client cmd (this cmd of disc) is blocked on steam.
Just do echo and kick the player with reason (CHECK CONSOLE FOR NEW IP)
Tote is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-17-2024 , 05:13   Re: Netchan Redirecting to a different Port
Reply With Quote #14

Not really, you can redirect the client to a different port by modifying the netchan data.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-17-2024 , 09:45   Re: Netchan Redirecting to a different Port
Reply With Quote #15

The ethical example I was referring to.

Code:
#include amxmodx #include amxmisc static iPlayerThreshold = 5 static const SzMessage[] = "Server Full. Try port 27016" public client_connectex(id, const name[], const ip[], reason[128]) {     reason = SzMessage     if(get_playersnum(1) > iPlayerThreshold)         return PLUGIN_HANDLED     return PLUGIN_CONTINUE }
__________________

Last edited by DJEarthQuake; 08-17-2024 at 09:46.
DJEarthQuake 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 12:26.


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