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

[ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-14-2008 , 16:52   [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #1

[ZP] Extra Item : Speed Boost
( ability for Humans and Zombie )

by Fry!



Description :

This is Speed Boost ability for both teams, that if you want to run away from enemy. When you will run you will have fire or smoke trail ( depends on cvar ). Ability is only for 1 round or until it ends, so in new round you must buy it again.

Note
:


Want to use it for admins only? Then uncommnet this.
Code:
//#define FOR_ADMINS_A_FLAG


Cvars
:

Quote:
  • zp_sb_cost "8" - How much Speed Boost will cost
  • zp_sb_maxspeed "325.0" - This will be maxspeed, but you can change it what ever number you want.
  • zp_sb_time "25.0" - How long you can run before boost are over.
  • zp_sb_red_color "150" - Amount of red color.
  • zp_sb_green_color "0" - Amount of green color.
  • zp_sb_blue_color "100" - Amount of blue color.
  • zp_sb_bar <1|0> - Enable|Disable speed boost bar (show's current speed)
  • zp_current_speed_bar <1|0> - Enable|Disable current speed bar
  • zp_sb_trail <1|0> - Enable|Disable trail.
  • zp_sb_sprite_type <1|0> - Chose between fire trail or smoke trail


Commands
:


say /sboost or say_team /sboost - to buy Speed Boost

Changelog :

Code:
14/11/2008 - v1.0 - First release
15/11/2008 - v1.1 - fixed some mistakes, added cvar how long you can use maxspeed.
18/11/2008 - v1.1.2 - added glow effect when you buy speed booster with cvars, added reset after infection or kill.
04/01/2009 - v1.1.5 - fixed speed boost if you already had due to you could waste ammo packs, removed wrong admin function, added new possibility to change for admins only.
28/06/2009 - v1.2 - added new feature for speed boost, added to show current speed and if you are using speed boost it will be showed as well, removed toggle cvar, corrected chat messages, optimized code.

Plugin is available to download here!
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.

Last edited by Fry!; 06-28-2009 at 13:28. Reason: New release v1.2 ; delayed.
Fry! is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 11-14-2008 , 17:14   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #2

I think you should add, that you can use it for x seconds.
BloodMan is offline
Send a message via Skype™ to BloodMan
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-14-2008 , 17:28   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #3

yea ok, good suggestion.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
rzlqwerty
Member
Join Date: Nov 2008
Old 11-14-2008 , 22:19   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #4

bad english/////////

I get that it costs 7707060 AMMO packs could lower the price, I can not. and that lasts for at least 30 seconds
rzlqwerty is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-15-2008 , 02:35   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #5

Quote:
Originally Posted by rzlqwerty View Post
bad english/////////

I get that it costs 7707060 AMMO packs could lower the price, I can not. and that lasts for at least 30 seconds
I don't know why it's cost to you so much ammo packs cuz I made it only for 8 ammo packs...
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
pro_on_0
Member
Join Date: Nov 2008
Old 11-15-2008 , 04:53   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #6

Problem!
I set the cost is 8 ammo packs but when i play ,it is 674233 ammo packs- -''
pro_on_0 is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-15-2008 , 05:03   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #7

Quote:
Originally Posted by pro_on_0 View Post
Problem!
I set the cost is 8 ammo packs but when i play ,it is 674233 ammo packs- -''
Why did you ever set default cvars? It's a default if you want to be it 8 then you don't need to set it again.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-15-2008 , 05:13   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #8

Code:
g_itemid_speed = zp_register_extra_item(g_item_name, g_sb_cost, 0)
to
Code:
g_itemid_speed = zp_register_extra_item(g_item_name, get_pcvar_num(g_sb_cost), 0)
to fix your problem. Also whats the point of this
Code:
#define SPEED_BOOST ADMIN_LEVEL_B
you never use SPEED_BOOST in the plugin. And why did you include fm_set_user_maxspeed when you never use that function?
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-15-2008 , 05:18   Re: [ZP] Extra Item : Speed Boost
Reply With Quote #9

Quote:
Originally Posted by G-Dog View Post
Code:
g_itemid_speed = zp_register_extra_item(g_item_name, g_sb_cost, 0)
to
Code:
g_itemid_speed = zp_register_extra_item(g_item_name, get_pcvar_num(g_sb_cost), 0)
to fix your problem. Also whats the point of this
Code:
#define SPEED_BOOST ADMIN_LEVEL_B
you never use SPEED_BOOST in the plugin. And why did you include fm_set_user_maxspeed when you never use that function?
Code:
g_itemid_speed = zp_register_extra_item(g_item_name, g_sb_cost, 0)
to
Code:
g_itemid_speed = zp_register_extra_item(g_item_name, get_pcvar_num(g_sb_cost), 0)
1)Yea, I forgat to use get_pcvar_num(g_sb_cost), damn.
2) oh that was when I created with that function, then I forgat to change it..
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-15-2008 , 08:39   Re: [ZP] Extra Item : Speed Boost || Updated v1.1
Reply With Quote #10

Updated to v1.1, see first post.
I still haven't tested this sub plugin...
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! 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 11:32.


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