mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed bug reported by JJKiller
This commit is contained in:
parent
7f6e9f5e20
commit
f2faf990a0
@ -59,4 +59,4 @@ AMX_NATIVE_INFO pdata_natives[] = {
|
|||||||
{ "get_pdata_float", get_pdata_float },
|
{ "get_pdata_float", get_pdata_float },
|
||||||
{ "set_pdata_float", set_pdata_float },
|
{ "set_pdata_float", set_pdata_float },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
static cell AMX_NATIVE_CALL amx_pev(AMX *amx,cell *params)
|
static cell AMX_NATIVE_CALL amx_pev(AMX *amx,cell *params)
|
||||||
{
|
{
|
||||||
int index=params[1];
|
int index=params[1];
|
||||||
if (index >= 1 && index <= 32)
|
if (index >= 1 && index <= gpGlobalx->maxClients)
|
||||||
{
|
{
|
||||||
if (!MF_IsPlayerIngame(index))
|
if (!MF_IsPlayerIngame(index))
|
||||||
{
|
{
|
||||||
@ -1091,4 +1091,4 @@ AMX_NATIVE_INFO pev_natives[] = {
|
|||||||
{ "pev", amx_pev },
|
{ "pev", amx_pev },
|
||||||
{ "set_pev", amx_set_pev },
|
{ "set_pev", amx_set_pev },
|
||||||
{NULL, NULL},
|
{NULL, NULL},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user