Raised This Month: $12 Target: $400
 3% 

[INC] Bye bye [Trash this!]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-24-2008 , 08:05   [INC] Bye bye [Trash this!]
Reply With Quote #1

Please delete!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 09-14-2009 at 16:40. Reason: It doesn't offer anything!
ot_207 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-24-2008 , 11:16   Re: [INC] Speed API
Reply With Quote #2

You should add the compatability with other plugins, so the forward is called when another plugin changes the player's maxspeed.

Also, I believe fm_get_user_maxspeed() is included with fakemeta_util. I may be wrong.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-24-2008 , 11:28   Re: [INC] Speed API
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
You should add the compatability with other plugins, so the forward is called when another plugin changes the player's maxspeed.

Also, I believe fm_get_user_maxspeed() is included with fakemeta_util. I may be wrong.
Will do! This is the first release. And fm_get_user_maxspeed() is trully from fakemeta_util.inc. But I have a question is it possible to register a native that returnes a Float value? (haven't tried it yet)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 09-24-2008 , 14:01   Re: [INC] Speed API
Reply With Quote #4

Quote:
Originally Posted by ot_207 View Post
Will do! This is the first release. And fm_get_user_maxspeed() is trully from fakemeta_util.inc. But I have a question is it possible to register a native that returnes a Float value? (haven't tried it yet)
I never used it too, but i'm assuming adding a Float: tag to the native declaration will do. If it doesn't work, you can just ask for where to store the result, like fakemeta does, and set it by reference.
danielkza is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-24-2008 , 15:18   Re: [INC] Speed API
Reply With Quote #5

Quote:
Originally Posted by danielkza View Post
I never used it too, but i'm assuming adding a Float: tag to the native declaration will do. If it doesn't work, you can just ask for where to store the result, like fakemeta does, and set it by reference.
I thought of Float: tag, will try it, and for the second method, that is a good alternative.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-24-2008 , 15:22   Re: [INC] Speed API
Reply With Quote #6

Example:

Code:
native Float:my_function();
Code:
public plugin_natives() {     register_native("my_function", "_my_function"); } public Float:_my_function(plugin, params) {     return 1.0; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-24-2008 , 21:52   Re: [INC] Speed API
Reply With Quote #7

You will have to be careful about recursion if you execute the forward when another plugin changes the speed. Most likely every plugin using the forward will change the speed during the forward, so even if you prevent self-recursion, if you have at least 2 plugins using the forward then it will snowball infinitely.

Also, fakemeta_util is a default include now (in case you didn't already know), but by including it you might up the size of the plugin a little bit.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-25-2008 , 03:51   Re: [INC] Speed API v2.0
Reply With Quote #8

Updated it! It has more functions now ;).
Suggestions are welcomed!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-25-2008 , 16:12   Re: [INC] Speed API v2.0
Reply With Quote #9

It looks like you didn't update the SMA. ;)
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-25-2008 , 17:16   Re: [INC] Speed API v2.0
Reply With Quote #10

Quote:
Originally Posted by XxAvalanchexX View Post
It looks like you didn't update the SMA. ;)
Thanks for the notice! Updated it!
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Reply


Thread Tools
Display Modes

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 05:51.


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