From f270d2fceaf40ec3ba721302fc60d67af4811d14 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Wed, 20 Jun 2007 01:13:35 +0000 Subject: * take away blue print when a player's building rights are denied * don't spam message when !putteam won't do anything --- src/game/g_admin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 104fdc45..b2e526fb 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1941,6 +1941,8 @@ qboolean G_admin_putteam( gentity_t *ent, int skiparg ) ADMP( va( "^3!putteam: ^7unknown team %c\n", team[ 0 ] ) ); return qfalse; } + if( vic->client->pers.teamSelection == teamnum ) + return qfalse; G_ChangeTeam( vic, teamnum ); AP( va( "print \"^3!putteam: ^7%s^7 put %s^7 on to the %s team\n\"", @@ -2104,6 +2106,7 @@ qboolean G_admin_denybuild( gentity_t *ent, int skiparg ) return qtrue; } vic->client->pers.denyBuild = qtrue; + ent->client->ps.stats[ STAT_BUILDABLE ] = BA_NONE; CPx( pids[ 0 ], "cp \"^1You've lost your building rights\"" ); AP( va( "print \"^3!denybuild: ^7building rights for ^7%s^7 revoked by ^7%s\n\"", -- cgit