Scripting God? Ha!
Code:
new player = cmd_target(id,user,1+2)
cmd_target() locates a player's id. The 1+2 part means "obey immunity + allow immune admin to perform on self".
Quote:
Flags:
1 - obey immunity
2 - allow yourself
4 - must be alive
8 - can't be bot
|
Code:
if(!is_user_connected(player) || !is_user_alive(player))
Well, let's make this simple.. If the user isn't connected OR the user isn't alive, stop the rest of the function from being executed.
__________________