diff options
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8388b01a..5e59827c 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2036,6 +2036,16 @@ void Cmd_Sell_f( gentity_t *ent ) } } +/* +================= +Cmd_Statement_f +================= +*/ +void Cmd_Statement_f( gentity_t *ent ) +{ + trap_SendServerCommand( ent-g_entities, va("print \"Credits: %d\n\"", + ent->client->ps.stats[ STAT_CREDIT ] ) ); +} /* ================= @@ -2381,6 +2391,8 @@ void ClientCommand( int clientNum ) { Cmd_Buy_f( ent ); else if (Q_stricmp (cmd, "sell") == 0) Cmd_Sell_f( ent ); + else if (Q_stricmp (cmd, "statement") == 0) + Cmd_Statement_f( ent ); else if (Q_stricmp (cmd, "deposit") == 0) Cmd_Deposit_f( ent ); else if (Q_stricmp (cmd, "withdraw") == 0) |