Quote:
Originally Posted by hleV
If it's not a player, then ofc it's not alive.
|
So if u already check with
checking with IsPlayer would be pointless, right?
Code:
#define IsPlayer(%1) (1<=%1<=g_max_clients)
new g_max_clients
public plugin_init() {
g_max_clients = get_maxplayers()
}
if(IsPlayer(i) && is_user_alive(i))
{
...
}