Raised This Month: $ Target: $400
 0% 

[Solved ]Menu does not appear


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-09-2015 , 20:31   Re: Menu does not appear
Reply With Quote #1

Edit: So, to make it more clear:
PHP Code:
public client_connect(id) {
    
    
/*
    new szName[32]
    get_user_name(id,szName,charsmax(szName))
    */
    
if(is_user_alive(id)){

        if(
has_flg(id,ADMIN_ALL)){
            
                
g_Adminrank ADMIN_KICK_RANK
                bIsbAdmin
[id] = true
                

        
}

        else if (
has_flg(id,ADMIN_RCON))
        {
                
g_Adminrank ADMIN_BAN_RANK
                bIsmAdmin
[id] = true
        
}
        
        
Choose_menu(id)
    }

-->
PHP Code:
public client_putinserver(id
{
    if(
is_user_connected(id))
    {
        if(
has_flg(id,ADMIN_ALL)){
            
            
g_Adminrank ADMIN_KICK_RANK
            bIsbAdmin
[id] = true
        
}
        else if (
has_flg(id,ADMIN_RCON))
        {
            
g_Adminrank ADMIN_BAN_RANK
            bIsmAdmin
[id] = true
        
}
        
        
set_task(3.0"Choose_menu"id)
    }


Last edited by zmd94; 01-10-2015 at 06:46.
zmd94 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-09-2015 , 21:14   Re: Menu does not appear
Reply With Quote #2

Quote:
Originally Posted by zmd94 View Post
PHP Code:
public client_connect(id
-->
PHP Code:
public client_putinserver(id
Quote:
Originally Posted by wickedd View Post
Do you really think a player is alive when he is connecting to the server?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 01-10-2015 , 06:41   Re: Menu does not appear
Reply With Quote #3

Thanks for your reply .

Hey, zmd94 , your way is correct i don't understand why wickedd refuse it .

Back to the object , i don't have a problem with hooking client event i've just miss it .

what i wan't is : why the menu doesn't appear ?

Last edited by Freezo Begin; 01-10-2015 at 06:41.
Freezo Begin is offline
Reply



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 15:19.


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