Forums Index >> Modding >> _ is knocking?
Page : <1> :
I wonder why there aren't line in prefs.cs. Every other admin centerprints are changeable. Knocking message not, why?
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
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. :)
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?