Forums Index >> Modding >> _ is knocking?



Page : <1> :


In some mods there is some script that centerprints _ is Knocking when the server is full and someone tries to come in,
what script is that? Or is it part of another script?
if so may I have it?

Monday, March 21, 2005 at 6:55:27 PM

It's part of the dash admin codes.

Monday, March 21, 2005 at 11:19:17 PM

I wonder why there aren't line in prefs.cs. Every other admin centerprints are changeable. Knocking message not, why?

Tuesday, March 22, 2005 at 4:26:55 AM

Yes you can. Go to your gameconnection.cs file. Find this part of it :

 

Function GameConnection::onConnectRequest( %client, %netAddress, %name )
{

%ip = scrub_ip(%netAddress);

Echo("CONNECT REQUEST FROM: " @ %name @ " " @ %ip );
if($Server::PlayerCount >= $Pref::Server::MaxPlayers )
{
schedule(1000,false,"bottomprintall",%name SPC " IS KNOCKING",2,2);
logConnection(%name,%ip,"SERVER FULL");
return "CR_SERVERFULL";
}
else if(isBanned(%ip))
{
centerprintall("BANNED PLAYER REJECTED: " @ %name @ " " @ %netAddress,4,1);
logConnection(%name,%ip,"banned player rejected");
return "CR_YOUAREBANNED";
}
else if(isnotReal(%name,%ip))
{
schedule(1000,false,"centerprintall","FAKE " SPC %client.nameBase@" KICKED",4);
logConnection(%name,%ip,"IMPOSTOR REJECTED");
echo (%name SPC %ip SPC "IMPOSTOR REJECTED");
return "CR_YOUAREBANNED";

}

LogConnection(%name,%ip,"player accepted");

Return "";
}

 

See where it says IS KNOCKING? Change that to whatever you want. After you save I think you might have to delete your gameconnection.cs.dos file. Not sure.


Last edited: Tuesday, March 22, 2005 at 6:42:59 AM

Tuesday, March 22, 2005 at 6:41:45 AM

You don't have to delete it, since the game re-compiles over it anyway.

Tuesday, March 22, 2005 at 8:25:53 AM

Aargh, knew someone will post codes for it. I didn't actually want to change it...just wondered why dash didn't give that part. Well, people who want it,ˆ there is it. :)

Tuesday, March 22, 2005 at 8:26:48 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald