Raised This Month: $ Target: $400
 0% 

Task only if the user is connected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-17-2009 , 16:40   Re: Task only if the user is connected
Reply With Quote #4

Code:
new g_bJustConnected[33];   public client_connect(iCl)         g_bJustConnected[33] = true;   public fnFunction(iCl) {         // Check if player has just connected         if (g_bJustConnected[iCl])         {                 // Player has just connected, set the task                 set_task(TASK_MENU_DISPLAY_TIME, "choose_menu", iCl);                   // Now set that player is no longer "just connected"                 g_bJustConnected[iCl] = false;         } }
Is this what you want?
__________________
hleV 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 01:24.


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