diff options
author | kai <kai@zittrig.eu> | 2020-04-03 19:15:14 +0100 |
---|---|---|
committer | kai <kai@zittrig.eu> | 2020-04-03 19:15:14 +0100 |
commit | c40b790728683b551fe73e3fd82bfb787ab3c391 (patch) | |
tree | 810f0532946bad94638774ca818a022042300ec0 /src/game/g_cmds.c | |
parent | 8b94622f248c005c09194e661d8fe2d78cd9d409 (diff) |
g_guidlessBuildersAllowedmartial-law
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index a9e7daa..4f74d59 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -3045,6 +3045,14 @@ void Cmd_Destroy_f( gentity_t *ent ) char cmd[ 12 ]; qboolean deconstruct = qtrue; + if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) && g_guidlessBuildersAllowed.integer == 0 ) // are they guidless, and can guidless players build? + { + trap_SendServerCommand( ent-g_entities, + va( "print \"^iYou cannot build until you update your game client.\n^7More information below:\n%s\n\"", + g_outdatedClientMessage.string ) ); + return; + } + if( ent->client->pers.denyBuild ) { trap_SendServerCommand( ent-g_entities, @@ -3227,6 +3235,14 @@ void Cmd_Mark_f( gentity_t *ent ) return; } + if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) && g_guidlessBuildersAllowed.integer == 0 ) // are they guidless, and can guidless players build? + { + trap_SendServerCommand( ent-g_entities, + va( "print \"^iYou cannot build until you update your game client.\n^7More information below:\n%s\n\"", + g_outdatedClientMessage.string ) ); + return; + } + if( ent->client->pers.denyBuild ) { trap_SendServerCommand( ent-g_entities, @@ -3809,6 +3825,14 @@ void Cmd_Build_f( gentity_t *ent ) vec3_t origin; pTeam_t team; + if( !Q_stricmp( ent->client->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) && g_guidlessBuildersAllowed.integer == 0 ) // are they guidless, and can guidless players build? + { + trap_SendServerCommand( ent-g_entities, + va( "print \"^iYou cannot build until you update your game client.\n^7More information below:\n%s\n\"", + g_outdatedClientMessage.string ) ); + return; + } + if( ent->client->pers.denyBuild ) { trap_SendServerCommand( ent-g_entities, |