Raised This Month: $ Target: $400
 0% 

Task only if the user is connected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-17-2009 , 16:10   Re: Task only if the user is connected
Reply With Quote #3

I meaned, the task is only you used once, when the user is connected, is it clear enough ? I can try to explain it more, but i think that it would be hard

[EDIT]

Maybe this?
PHP Code:
public fwHamPlayerSpawnPost(id)
{
    if(
get_pcvar_num(g_Enable) == 0)
        return 
HAM_SUPERCEDE;
    if(
get_pcvar_num(gCvarMenuOpen) == 1)
    {
        
set_task(TASK_MENU_DISLPAY_TIME"choose_menu"id);

        return 
HAM_IGNORED;
    }
    if((!
is_user_connected(id)) && get_pcvar_num(gCvarMenuOpen) == 2)
    {
        
set_task(TASK_MENU_DISLPAY_TIME"choose_menu"id);

        return 
HAM_IGNORED;
    }

[/EDIT]
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.

Last edited by TitANious; 05-17-2009 at 16:14.
TitANious is offline
Send a message via MSN to TitANious
 



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 01:25.


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