Raised This Month: $ Target: $400
 0% 

tasks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-19-2010 , 18:46   Re: tasks
Reply With Quote #4

Quote:
Originally Posted by Bugsy View Post
menu_id would be the task-id. Think of it as an identification number for that particular task. If this is the only usage for tasks in your plugin then you can always use the player-id as the task-id. Otherwise you will need a little extra, let me know if this is the case.
Exactly. Just some minor things: (see comments)
PHP Code:
AwesomeMenuid )
{
     
showmenuid );
     
set_task10.0 "random" id);
}

MenuChooserid )
{
      
//player (id) chose something on menu
      
remove_taskid );
}

public 
randomid )
{
     
//callfunc( id );
     //get_user_health( id );
     //or w\e
     
menu_destroy(id); // after randomizing an option, close the menu


Last edited by Seta00; 03-19-2010 at 19:45.
Seta00 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 08:36.


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