Quote:
Originally Posted by PurposeLessx
I know I don't need check connected with is_user_alive.
My question is:
!is_user_alive && is_user_connected
|
Put some logic before posting, is_user_alive and !is_user_alive are both the same native, you're just using a negation mark.
PHP Code:
is_user_alive(id)
This is what happens inside the AMXX module
Code:
pPlayer->ingame && pPlayer->IsAlive()
So in your case:
!is_user_alive would return
true if either player is
not connected or
not alive.
What you're doing:
!is_user_alive(id) && is_user_connected(id)
What happens in the module:
Code:
pPlayer->ingame && !(pPlayer->IsAlive()) && pPlayer->ingame
So basically you're calling a native for nothing.