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
FRee StyLeR | SteeL
Junior Member
Join Date: Jul 2009
Old 07-03-2009 , 15:44   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #41

Yes, addons is something nice .. have addons gun game, zombie mod addons, addons death match, addons super hero, addons paint ball and many others ... ..
FRee StyLeR | SteeL is offline
NullWarez
Member
Join Date: Aug 2010
Location: Internet
Old 09-04-2010 , 09:39   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #42



PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>
#include <zombieplague>

#define BOOST_SPEED 400
#define BOOST_TIME 25.0
#define BOOST_PRICE 6

new g_speedboost
new g_fx_red 150g_fx_green 255g_fx_blue 255
new bool:g_sb_switch[33]

public 
plugin_init()
{
    
register_plugin("[ZP] Speed Boost""1.0.1""NullWarez")
    
g_speedboost zp_register_extra_item("Speed Booster"BOOST_PRICEZP_TEAM_ZOMBIE// Zombies only
}

public 
zp_extra_item_selected(iditemid)
{
    if (
itemid != g_speedboost)
        return 
PLUGIN_CONTINUE

    g_sb_switch
[id] = true
    zp_set_zombie_speed
(idBOOST_SPEED)
    
    
set_task(BOOST_TIME"speed_over"id)
    
set_user_rendering(idkRenderFxGlowShellg_fx_redg_fx_greeng_fx_bluekRenderNormal255)
    
    
ColorChat(idNORMAL"^x04[ZP]^x01 You bought speed boster!")
    
    return 
PLUGIN_CONTINUE
}

public 
speed_over(id)
{
    
g_sb_switch[id] = false
    zp_set_zombie_speed
(idfalse)
    
set_user_rendering(idkRenderFxNone0,0,0kRenderNormal255)
    
ColorChat(idNORMAL"^x04[ZP]^x01 Speed boost ended!")
}

public 
zp_user_humanized_post(id)
{
    if(
g_sb_switch[id])
    {
        
remove_task(id)
        
g_sb_switch[id] = false
        
        
if(!zp_get_user_survivor(id))
            
set_user_rendering(idkRenderFxNone0,0,0kRenderNormal255)
    }

PHP Code:
public native_set_zombie_speed(idspeed)
{
    if(!
g_zombie[id])
        return;

    if(!
speed)
    {
        
g_zombie_spd[id] = float(ArrayGetCell(g_zclass_spdg_zombieclass[id]))
        return;
    }
    
    
g_zombie_spd[id] = float(speed)



this code is easier and faster ... I am very much not like to use fw_ *** Think
uses native calls from the most plug-in, and we thus removes excess
__________________
Develop ZP 4.3 Tear Devil

Last edited by NullWarez; 09-04-2010 at 09:45.
NullWarez is offline
silver-
Senior Member
Join Date: Jul 2006
Old 04-15-2011 , 01:12   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #43

Fry! can you reupload?
__________________


Need active admins for our zombie server. Just PM.
silver- is offline
NickuGeorge
Senior Member
Join Date: Mar 2011
Location: Romania
Old 04-15-2011 , 09:10   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #44

good job ;)
__________________

NickuGeorge is offline
Send a message via Yahoo to NickuGeorge
V2L
New Member
Join Date: May 2011
Old 05-25-2011 , 00:10   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #45

That`s Great!
V2L is offline
Old 06-24-2012, 18:56
DamnInside
This message has been deleted by DamnInside.
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 06-25-2012 , 03:59   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #46

http://projectyami.com/supercentral/...?showtopic=207
gogicaa is offline
18chmAn
Junior Member
Join Date: Oct 2012
Location: Taiwan
Old 03-09-2013 , 23:59   Re: [ZP] Extra Item : Speed Boost || Updated v1.2 [28/06/2009]
Reply With Quote #47

Can give a new link plz?
18chmAn 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 16:46.


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