Raised This Month: $ Target: $400
 0% 

Remove Boots of Speed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 08-02-2013 , 09:54   Remove Boots of Speed
Reply With Quote #1

Hello i remove the Speed a player gets from Boots Of Speed block with this code
PHP Code:
public TaskRemoveBootsOfSpeed(id)
{
    
id -= TASK_BOOTSOFSPEED;
    
    
g_boots_of_speed[id] = 0;
    
    if ( !
g_alive[id] ) return PLUGIN_HANDLED;
    
    if ( 
g_ice[id] )
    {
        
entity_set_float(idEV_FL_maxspeed400.0);
    }
    else if ( 
g_honey[id] )
    {
        static 
blockproperty1[5];
        
block g_honey[id];
        
GetProperty(block1property1);
        
        
entity_set_float(idEV_FL_maxspeedstr_to_float(property1));
    }
    else
    {
        
ResetMaxspeed(id);
    }
    
    return 
PLUGIN_HANDLED;

My question is if this is the right and best way.
Thanks

Last edited by UchihaSkills; 08-02-2013 at 09:54.
UchihaSkills 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 15:47.


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