Raised This Month: $ Target: $400
 0% 

Remove Boots of Speed


Post New Thread Reply   
 
Thread Tools Display Modes
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
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-02-2013 , 13:03   Re: Remove Boots of Speed
Reply With Quote #2

You need to show us the whole code.
__________________
Kia is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 08-06-2013 , 06:52   Re: Remove Boots of Speed
Reply With Quote #3

Why?
UchihaSkills is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2013 , 07:18   Re: Remove Boots of Speed
Reply With Quote #4

Because we need to see how the original Block is working.
__________________
Kia is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-07-2013 , 07:51   Re: Remove Boots of Speed
Reply With Quote #5

remove_task(id);
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-07-2013 , 14:09   Re: Remove Boots of Speed
Reply With Quote #6

its not your code if you want someone to help, you must attach whole plugin
seriousspot is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 08-07-2013 , 14:51   Re: Remove Boots of Speed
Reply With Quote #7

Its my code. I wont attach the whole Plugin.

Last edited by UchihaSkills; 08-07-2013 at 17:52.
UchihaSkills is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-07-2013 , 15:20   Re: Remove Boots of Speed
Reply With Quote #8

Quote:
Originally Posted by UchihaSkills View Post
Its my code. I wont attach the whole Plugin its ok.
I got my answer.
well its not yours as you mentioned it has boots of speed.
seriousspot is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 08-07-2013 , 15:33   Re: Remove Boots of Speed
Reply With Quote #9

Quote:
Originally Posted by seriousspot View Post
well its not yours as you mentioned it has boots of speed.
What are you talking about?
Im coding my own blockmaker and for sure its my own code..
I never coded Boots Of Speed so i asked if its correct way.
UchihaSkills is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-07-2013 , 16:55   Re: Remove Boots of Speed
Reply With Quote #10

I doubt that you have the skills to write an entire blockmaker. I guess you copy & paste from other plugins (like here Boots of speed). "Never coded Boots of Speed" is not an excuse. Just register a touch for the block and change the players maxspeed and set and delayed task to remove the speed.
__________________
Kia is offline
Reply



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