Raised This Month: $ Target: $400
 0% 

Blockmaker actions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 05-10-2011 , 14:46   Re: Blockmaker actions
Reply With Quote #3

Quote:
Originally Posted by boztroL View Post
How i need to 'mixup' them
Try this
PHP Code:
ActionDelayedIce(idiEnt)
{
    new 
iTask TASK_SOLIDNOT iEnt;
    if( 
task_exists(iTask) || task_exists(TASK_SOLID iEnt) )
    {
        return 
PLUGIN_HANDLED;
    }
    
    if( !
g_ice[id] )
    {
        
entity_set_float(idEV_FL_friction0.15);
        
entity_set_float(idEV_FL_maxspeed400.0);
        
        
g_ice[id] = true;
    }
    
    
iTask TASK_ICE id;
    if( 
task_exists(iTask) )
    {
        
remove_task(iTask);
    }
    
    
set_task(0.1"TaskNotOnIce"iTask);
    
    static 
szProp[5];
    
GetProperty(iEnt1szProp);
    
    new 
Float:flValue str_to_float(szProp);
    
    
iTask TASK_SOLIDNOT iEnt;
    
set_task(str_to_float(flValue), "TaskSolidNot"iTask);
    
    return 
PLUGIN_HANDLED;

nnajko 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 04:20.


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