mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-02-15 16:41:16 +00:00
Cleanup g_cmds.c
This commit is contained in:
parent
69335bc840
commit
bc1558b36c
2 changed files with 813 additions and 1316 deletions
|
@ -2405,3 +2405,35 @@ void ClientDisconnect( int clientNum ) {
|
|||
clientInitialStatus[clientNum].initialized = qfalse;
|
||||
}
|
||||
|
||||
/*
|
||||
================
|
||||
IsAdmin
|
||||
RPG-X | Phenix | 21/11/2004
|
||||
================
|
||||
*/
|
||||
/**
|
||||
* Checks if player is an admin.
|
||||
* \param ent the player
|
||||
*
|
||||
* \author Ubergames - Phenix
|
||||
* \date 21/11/2004
|
||||
*/
|
||||
qboolean IsAdmin( gentity_t *ent)
|
||||
{
|
||||
if ( !ent )
|
||||
return qfalse;
|
||||
|
||||
if ( !ent->client )
|
||||
return qfalse;
|
||||
|
||||
if (( g_classData[ent->client->sess.sessionClass].isAdmin ) ||
|
||||
( ent->client->LoggedAsAdmin == qtrue ) ||
|
||||
( ent->client->LoggedAsDeveloper == qtrue )
|
||||
) {
|
||||
return qtrue;
|
||||
} else {
|
||||
return qfalse;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
2097
code/game/g_cmds.c
2097
code/game/g_cmds.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue