Raised This Month: $ Target: $400
 0% 

ID + TASK


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Temptation
Member
Join Date: Jan 2010
Old 03-14-2010 , 04:45   ID + TASK
Reply With Quote #1

My point is how to remove task without affecting the set task at asda menu ? because when i add id+TASK_RESPAWN at spawn point the menu won't appear.

PHP Code:
enum (+= 100)
{
    
TASK_RESPAWN
}

#define ID_RESPAWN ( taskid - TASK_RESPAWN )

public fwHamPlayerSpawnPostid )
{
     if ( 
is_user_aliveid ) )
    {
         
set_task0.1"asda"id )
         
HERE!!!!!!!!!!!!!!!!!!!!!! // remove_task( id+TASK_RESPAWN ) 
    
}
}

public 
TaskCheckSpawnid )
{
    if ( !
is_user_aliveid ) )
    {
        if ( 
CS_TEAM_T <= cs_get_user_teamid ) <= CS_TEAM_CT )
        {
            
ExecuteHamBHam_CS_RoundRespawnid )
        }
        else
        {
            
set_task1.0"TaskCheckSpawn"id+TASK_RESPAWN )
        }
    }
}

public 
asdaid )
{
    new 
menu menu_create"\asdMenu""asdasd_Handler" )
    
menu_additemmenu"AK47""1")
}

public 
WeaponMenu_Handleridmenuitem )
{
    if ( 
item == MENU_EXIT )
    {
        
menu_destroymenu )
        return 
PLUGIN_HANDLED
    
}
    
    new 
data], iName64 ]
    new 
accesscallback
    menu_item_getinfo
menuitemaccessdata5iName63callback )
    new 
key str_to_numdata )
    
    switch( 
key )
    {
        case 
1:
        {

        }

        
menu_destroymenu )
        return 
PLUGIN_HANDLED
}

public 
client_putinserverid )
{
    
set_task1.0"TaskCheckSpawn"id+TASK_RESPAWN )
}
public 
client_disconnectid )
{
    
remove_taskid+TASK_RESPAWN )

Temptation 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:38.


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