Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Disable/forbid Sunkist

Status
Not open for further replies.
Newbie Spellweaver
Joined
Feb 3, 2021
Messages
5
Reaction score
0
Hello,

I wanted to disable/forbid sunkist on my server.
Im having some trouble adding the code / making the code work.

I can join my server anyways with the batch.

->
Code:
 #ifndef __NO_SUNKIST
	if (strcmpi(szArg1, "sunkist"))
		return FALSE;
#endif	//__NO_SUNKIST

I tried it with defining the NO_SUNKIST and without defining it.
Both is not working.
I added the code under:
Code:
BOOL ParseCmdLine( LPCTSTR lpCmdLine )

I would appreciate any help.



Fixed it.

BHash change + Strcmpi change.
Never said in tutorials but ty anyways.
 
Newbie Spellweaver
Joined
Sep 8, 2011
Messages
67
Reaction score
252
you could just remove the entire call in APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
Code:
 #ifndef __NO_SUNKIST
	if( ParseCmdLine( lpCmdLine ) == FALSE )
		return 0;
#endif
 
Upvote 0
Status
Not open for further replies.
Back
Top