Fixed bug reported by JJKiller
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
static cell AMX_NATIVE_CALL amx_pev(AMX *amx,cell *params)
|
||||
{
|
||||
int index=params[1];
|
||||
if (index >= 1 && index <= 32)
|
||||
if (index >= 1 && index <= gpGlobalx->maxClients)
|
||||
{
|
||||
if (!MF_IsPlayerIngame(index))
|
||||
{
|
||||
@ -1091,4 +1091,4 @@ AMX_NATIVE_INFO pev_natives[] = {
|
||||
{ "pev", amx_pev },
|
||||
{ "set_pev", amx_set_pev },
|
||||
{NULL, NULL},
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user