Raised This Month: $ Target: $400
 0% 

Solved Give access to menu, Small problem :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xTr3m3r
Member
Join Date: Feb 2010
Old 02-13-2017 , 06:27   Give access to menu, Small problem :)
Reply With Quote #1

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(idprint_chat"%s %s has got  access already."PrefixszPlayerName);
            }
            else if(!
is_user_alive(player))
            {
                
client_print(idprint_chat"%s %s must be alive to get access."PrefixszPlayerName);
            } 
Any idea how do I fix that?

Last edited by xTr3m3r; 02-14-2017 at 01:16.
xTr3m3r is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode