Hello there!
So I made a menu from which you can give any player some flags with just aiming at him and a text is shown but the small problem I have is when I aim at the air (not a player) and try to give these flags it says the server name and that the it must be alive to get these flags
These are the things I check:
PHP Code:
if (is_user_connected(id) && is_user_alive(player) && get_user_flags(player) & ACCESS_ADMIN_LEVEL)
{
client_print(id, print_chat, "%s %s has got access already.", Prefix, szPlayerName);
}
else if(!is_user_alive(player))
{
client_print(id, print_chat, "%s %s must be alive to get access.", Prefix, szPlayerName);
}
Any idea how do I fix that?