core/smn_player.cpp
changeset 784 0ff19a8bd981
parent 756 34c2c73893ee
child 910 153c052460af
     1.1 --- a/core/smn_player.cpp	Sun May 13 06:37:38 2007 +0000
     1.2 +++ b/core/smn_player.cpp	Sun May 13 07:48:36 2007 +0000
     1.3 @@ -111,7 +111,7 @@
     1.4  	return 1;
     1.5  }
     1.6  
     1.7 -static cell_t sm_IsPlayerConnected(IPluginContext *pCtx, const cell_t *params)
     1.8 +static cell_t sm_IsClientConnected(IPluginContext *pCtx, const cell_t *params)
     1.9  {
    1.10  	int index = params[1];
    1.11  	if ((index < 1) || (index > g_Players.GetMaxClients()))
    1.12 @@ -122,7 +122,7 @@
    1.13  	return (g_Players.GetPlayerByIndex(index)->IsConnected()) ? 1 : 0;
    1.14  }
    1.15  
    1.16 -static cell_t sm_IsPlayerIngame(IPluginContext *pCtx, const cell_t *params)
    1.17 +static cell_t sm_IsClientInGame(IPluginContext *pCtx, const cell_t *params)
    1.18  {
    1.19  	int index = params[1];
    1.20  	if ((index < 1) || (index > g_Players.GetMaxClients()))
    1.21 @@ -133,7 +133,7 @@
    1.22  	return (g_Players.GetPlayerByIndex(index)->IsInGame()) ? 1 : 0;
    1.23  }
    1.24  
    1.25 -static cell_t sm_IsPlayerAuthorized(IPluginContext *pCtx, const cell_t *params)
    1.26 +static cell_t sm_IsClientAuthorized(IPluginContext *pCtx, const cell_t *params)
    1.27  {
    1.28  	int index = params[1];
    1.29  	if ((index < 1) || (index > g_Players.GetMaxClients()))
    1.30 @@ -144,7 +144,7 @@
    1.31  	return (g_Players.GetPlayerByIndex(index)->IsAuthorized()) ? 1 : 0;
    1.32  }
    1.33  
    1.34 -static cell_t sm_IsPlayerFakeClient(IPluginContext *pCtx, const cell_t *params)
    1.35 +static cell_t sm_IsClientFakeClient(IPluginContext *pCtx, const cell_t *params)
    1.36  {
    1.37  	int index = params[1];
    1.38  	if ((index < 1) || (index > g_Players.GetMaxClients()))
    1.39 @@ -830,10 +830,11 @@
    1.40  	{"GetMaxClients",			sm_GetMaxClients},
    1.41  	{"GetUserAdmin",			GetUserAdmin},
    1.42  	{"GetUserFlagBits",			GetUserFlagBits},
    1.43 -	{"IsClientAuthorized",		sm_IsPlayerAuthorized},
    1.44 -	{"IsClientConnected",		sm_IsPlayerConnected},
    1.45 -	{"IsFakeClient",			sm_IsPlayerFakeClient},
    1.46 -	{"IsPlayerInGame",			sm_IsPlayerIngame},
    1.47 +	{"IsClientAuthorized",		sm_IsClientAuthorized},
    1.48 +	{"IsClientConnected",		sm_IsClientConnected},
    1.49 +	{"IsFakeClient",			sm_IsClientFakeClient},
    1.50 +	{"IsPlayerInGame",			sm_IsClientInGame},			/* Backwards compat shim */
    1.51 +	{"IsClientInGame",			sm_IsClientInGame},
    1.52  	{"RemoveUserFlags",			RemoveUserFlags},
    1.53  	{"SetUserAdmin",			SetUserAdmin},
    1.54  	{"SetUserFlagBits",			SetUserFlagBits},