google-code-export / p-g-qvm

Automatically exported from code.google.com/p/p-g-qvm
Other
1 stars 0 forks source link

No building for prefixes #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is something that should have been automatic for a long time. No 
building for people who have a certain name prefix. In our case, we would 
use it to prevent unnamed players from building, without having to
 !denybuild them.

Advantages of an automatic system are that players would not have to wait 
for an admin to !allowbuild them, they would just have to rename and then 
they could build the same as ever before.

The system would work by use of 2 cvars.
g_noBuildPrefix "" <-- Prefix which defines who can and cant build. 
Basically anyone with this in the beginning of the name cannot build. In 
our case, this would be set to UnnamedPlayer, and the server would ignore 
the noob numbers.
g_noBuildMsg "" <-- The message which is displayed to users who match the 
string above. This would be cvar to allow server operators to set it, as 
they may use it for something other than unnamed building

Original issue reported on code.google.com by Paradox460 on 28 May 2008 at 8:34

GoogleCodeExporter commented 9 years ago
Patch attached, slightly different cvar names:

g_newbieNoBuild: set to 1 to enable this feature (default 0)

g_newbieNoBuildMessage: Message to tell players when they try to build, default 
is
"Press Escape and choose Options to set a name".

uses the pre-existing g_newbieNamePrefix so you do not need to set the name 
prefix in
two cvars :)

Original comment by Rez...@gmail.com on 29 May 2008 at 4:18

Attachments:

GoogleCodeExporter commented 9 years ago
Applied and committed

Original comment by Paradox460 on 1 Jun 2008 at 8:01