2007-01-25 23:36:38 +01:00
|
|
|
/**
|
|
|
|
* ===============================================================
|
|
|
|
* SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
|
|
|
|
* ===============================================================
|
|
|
|
*
|
|
|
|
* This file is not open source and may not be copied without explicit
|
|
|
|
* written permission of AlliedModders LLC. This file may not be redistributed
|
|
|
|
* in whole or significant part.
|
|
|
|
* For information, see LICENSE.txt or http://www.sourcemod.net/license.php
|
|
|
|
*
|
|
|
|
* Version: $Id$
|
|
|
|
*/
|
|
|
|
|
2007-03-10 22:18:07 +01:00
|
|
|
#include "PlayerManager.h"
|
2007-02-09 02:08:59 +01:00
|
|
|
#include "AdminCache.h"
|
2007-01-11 00:49:22 +01:00
|
|
|
#include "sm_stringutil.h"
|
2007-01-01 04:33:14 +01:00
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_GetClientCount(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
if (params[1])
|
|
|
|
{
|
2007-02-07 09:44:48 +01:00
|
|
|
return g_Players.NumPlayers();
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
int maxplayers = g_Players.MaxClients();
|
2007-01-01 04:33:14 +01:00
|
|
|
int count = 0;
|
|
|
|
for (int i=1; i<=maxplayers; ++i)
|
|
|
|
{
|
2007-02-07 09:44:48 +01:00
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(i);
|
2007-02-05 21:32:34 +01:00
|
|
|
if ((pPlayer->IsConnected()) && !(pPlayer->IsInGame()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
count++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
return (g_Players.NumPlayers() + count);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_GetMaxClients(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-07 09:44:48 +01:00
|
|
|
return g_Players.MaxClients();
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_GetClientName(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-02 03:40:32 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(index);
|
2007-02-05 21:32:34 +01:00
|
|
|
if (!pPlayer->IsConnected())
|
2007-01-02 03:40:32 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Client %d is not connected", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-05 21:32:34 +01:00
|
|
|
pCtx->StringToLocalUTF8(params[2], static_cast<size_t>(params[3]), pPlayer->GetName(), NULL);
|
2007-01-01 04:33:14 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_GetClientIP(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(index);
|
2007-02-05 21:32:34 +01:00
|
|
|
if (!pPlayer->IsConnected())
|
2007-01-02 03:40:32 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Client %d is not connected", index);
|
2007-01-02 03:40:32 +01:00
|
|
|
}
|
|
|
|
|
2007-01-11 00:49:22 +01:00
|
|
|
char buf[64], *ptr;
|
2007-02-05 21:32:34 +01:00
|
|
|
strcpy(buf, pPlayer->GetIPAddress());
|
2007-01-11 00:49:22 +01:00
|
|
|
|
|
|
|
if (params[4] && (ptr = strchr(buf, ':')))
|
|
|
|
{
|
|
|
|
*ptr = '\0';
|
|
|
|
}
|
|
|
|
|
|
|
|
pCtx->StringToLocal(params[2], static_cast<size_t>(params[3]), buf);
|
2007-01-01 04:33:14 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_GetClientAuthStr(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-02 03:40:32 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(index);
|
2007-02-05 21:32:34 +01:00
|
|
|
if (!pPlayer->IsConnected())
|
2007-01-02 03:40:32 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Client %d is not connected", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 20:30:53 +01:00
|
|
|
if (!pPlayer->IsAuthorized())
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-02-05 21:32:34 +01:00
|
|
|
pCtx->StringToLocal(params[2], static_cast<size_t>(params[3]), pPlayer->GetAuthString());
|
2007-02-07 20:30:53 +01:00
|
|
|
|
2007-01-01 04:33:14 +01:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_IsPlayerConnected(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
return (g_Players.GetPlayerByIndex(index)->IsConnected()) ? 1 : 0;
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_IsPlayerIngame(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
return (g_Players.GetPlayerByIndex(index)->IsInGame()) ? 1 : 0;
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_IsPlayerAuthorized(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
return (g_Players.GetPlayerByIndex(index)->IsAuthorized()) ? 1 : 0;
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
static cell_t sm_IsPlayerFakeClient(IPluginContext *pCtx, const cell_t *params)
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
|
|
|
int index = params[1];
|
2007-02-07 09:44:48 +01:00
|
|
|
if ((index < 1) || (index > g_Players.GetMaxClients()))
|
2007-01-01 04:33:14 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Invalid client index %d", index);
|
2007-01-02 03:40:32 +01:00
|
|
|
}
|
|
|
|
|
2007-02-07 09:44:48 +01:00
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(index);
|
2007-02-05 21:32:34 +01:00
|
|
|
if (!pPlayer->IsConnected())
|
2007-01-02 03:40:32 +01:00
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pCtx->ThrowNativeError("Client %d is not connected", index);
|
2007-01-01 04:33:14 +01:00
|
|
|
}
|
|
|
|
|
2007-02-05 21:32:34 +01:00
|
|
|
return (pPlayer->IsFakeClient()) ? 1 : 0;
|
2007-01-02 03:40:32 +01:00
|
|
|
}
|
|
|
|
|
2007-02-08 21:37:24 +01:00
|
|
|
static cell_t sm_GetClientInfo(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-08 21:37:24 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-08 21:37:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
char *key;
|
|
|
|
pContext->LocalToString(params[2], &key);
|
|
|
|
|
|
|
|
const char *val = engine->GetClientConVarValue(client, key);
|
|
|
|
if (!val)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
pContext->StringToLocalUTF8(params[3], params[4], val, NULL);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2007-02-09 02:08:59 +01:00
|
|
|
static cell_t SetUserAdmin(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!g_Admins.IsValidAdmin(params[2]))
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("AdminId %x is not valid", params[2]);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pPlayer->SetAdminId(params[2], params[3] ? true : false);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static cell_t GetUserAdmin(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return pPlayer->GetAdminId();
|
|
|
|
}
|
|
|
|
|
|
|
|
static cell_t AddUserFlags(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AdminId id;
|
|
|
|
if ((id=pPlayer->GetAdminId()) == INVALID_ADMIN_ID)
|
|
|
|
{
|
|
|
|
id = g_Admins.CreateAdmin(NULL);
|
|
|
|
pPlayer->SetAdminId(id, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
cell_t *addr;
|
|
|
|
for (int i=2; i<=params[0]; i++)
|
|
|
|
{
|
|
|
|
pContext->LocalToPhysAddr(params[i], &addr);
|
|
|
|
g_Admins.SetAdminFlag(id, (AdminFlag)*addr, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static cell_t RemoveUserFlags(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AdminId id;
|
|
|
|
if ((id=pPlayer->GetAdminId()) == INVALID_ADMIN_ID)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
cell_t *addr;
|
|
|
|
for (int i=2; i<=params[0]; i++)
|
|
|
|
{
|
|
|
|
pContext->LocalToPhysAddr(params[i], &addr);
|
|
|
|
g_Admins.SetAdminFlag(id, (AdminFlag)*addr, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static cell_t SetUserFlagBits(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AdminId id;
|
|
|
|
if ((id=pPlayer->GetAdminId()) == INVALID_ADMIN_ID)
|
|
|
|
{
|
|
|
|
id = g_Admins.CreateAdmin(NULL);
|
|
|
|
pPlayer->SetAdminId(id, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
g_Admins.SetAdminFlags(id, Access_Effective, params[2]);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static cell_t GetUserFlagBits(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 02:08:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
AdminId id;
|
|
|
|
if ((id=pPlayer->GetAdminId()) == INVALID_ADMIN_ID)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return g_Admins.GetAdminFlags(id, Access_Effective);
|
|
|
|
}
|
|
|
|
|
2007-02-09 05:41:03 +01:00
|
|
|
static cell_t GetClientUserId(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Invalid client index %d", client);
|
2007-02-09 05:41:03 +01:00
|
|
|
}
|
|
|
|
if (!pPlayer->IsConnected())
|
|
|
|
{
|
2007-02-12 06:53:49 +01:00
|
|
|
return pContext->ThrowNativeError("Client %d is not connected", client);
|
2007-02-09 05:41:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return engine->GetPlayerUserId(pPlayer->GetEdict());
|
|
|
|
}
|
|
|
|
|
2007-02-27 04:32:14 +01:00
|
|
|
static cell_t CanUserTarget(IPluginContext *pContext, const cell_t *params)
|
|
|
|
{
|
|
|
|
int client = params[1];
|
|
|
|
int target = params[2];
|
|
|
|
|
|
|
|
CPlayer *pPlayer = g_Players.GetPlayerByIndex(client);
|
|
|
|
if (!pPlayer)
|
|
|
|
{
|
|
|
|
return pContext->ThrowNativeError("Player %d is not a valid client", client);
|
|
|
|
} else if (!pPlayer->IsConnected()) {
|
|
|
|
return pContext->ThrowNativeError("Player %d is not connected", client);
|
|
|
|
}
|
|
|
|
|
|
|
|
CPlayer *pTarget = g_Players.GetPlayerByIndex(target);
|
|
|
|
if (!pTarget)
|
|
|
|
{
|
|
|
|
return pContext->ThrowNativeError("Player %d is not a valid client", target);
|
|
|
|
} else if (!pTarget->IsConnected()) {
|
|
|
|
return pContext->ThrowNativeError("Player %d is not connected", target);
|
|
|
|
}
|
|
|
|
|
|
|
|
return g_Admins.CanAdminTarget(pPlayer->GetAdminId(), pTarget->GetAdminId()) ? 1 : 0;
|
|
|
|
}
|
|
|
|
|
2007-01-02 03:40:32 +01:00
|
|
|
REGISTER_NATIVES(playernatives)
|
|
|
|
{
|
|
|
|
{"GetMaxClients", sm_GetMaxClients},
|
|
|
|
{"GetClientCount", sm_GetClientCount},
|
|
|
|
{"GetClientName", sm_GetClientName},
|
|
|
|
{"GetClientIP", sm_GetClientIP},
|
|
|
|
{"GetClientAuthString", sm_GetClientAuthStr},
|
2007-02-14 18:48:49 +01:00
|
|
|
{"IsClientConnected", sm_IsPlayerConnected},
|
2007-01-02 03:40:32 +01:00
|
|
|
{"IsPlayerInGame", sm_IsPlayerIngame},
|
2007-02-14 18:48:49 +01:00
|
|
|
{"IsClientAuthorized", sm_IsPlayerAuthorized},
|
|
|
|
{"IsFakeClient", sm_IsPlayerFakeClient},
|
2007-02-08 21:37:24 +01:00
|
|
|
{"GetClientInfo", sm_GetClientInfo},
|
2007-02-09 02:08:59 +01:00
|
|
|
{"SetUserAdmin", SetUserAdmin},
|
2007-02-11 01:17:54 +01:00
|
|
|
{"GetUserAdmin", GetUserAdmin},
|
2007-02-09 02:08:59 +01:00
|
|
|
{"AddUserFlags", AddUserFlags},
|
|
|
|
{"RemoveUserFlags", RemoveUserFlags},
|
|
|
|
{"SetUserFlagBits", SetUserFlagBits},
|
|
|
|
{"GetUserFlagBits", GetUserFlagBits},
|
2007-02-09 05:41:03 +01:00
|
|
|
{"GetClientUserId", GetClientUserId},
|
2007-02-27 04:32:14 +01:00
|
|
|
{"CanUserTarget", CanUserTarget},
|
2007-01-02 03:40:32 +01:00
|
|
|
{NULL, NULL}
|
2007-01-25 10:19:38 +01:00
|
|
|
};
|
|
|
|
|