PHP Code:
static cell AMX_NATIVE_CALL is_user_connected(AMX *amx, cell *params) /* 1 param */
{
int index = params[1];
-> if (index < 1 || index > gpGlobals->maxClients)
return 0;
CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);
return (pPlayer->ingame ? 1 : 0);
}
Code:
[...] is_user_connected(attacker) [...]
Now, let me fix :
Quote:
|
Originally Posted by bibu
I'm an Idiot.
|
__________________