summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2007-06-20 01:13:35 +0000
committerM. Kristall <mkpdev@gmail.com>2007-06-20 01:13:35 +0000
commitf270d2fceaf40ec3ba721302fc60d67af4811d14 (patch)
tree9c01790ef3a04a9ee783ae18183c89c6f38223b1 /src
parent69f6b01ad560ecdfa5d03c35764f527a97cd97a9 (diff)
* take away blue print when a player's building rights are denied
* don't spam message when !putteam won't do anything
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c3
1 files changed, 3 insertions, 0 deletions
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\"",