Raised This Month: $ Target: $400
 0% 

[Help] My First Plugin : Evolve Zombie to lv2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bloody Hamster
Junior Member
Join Date: Jan 2012
Location: Serbia , Belgrade
Old 01-17-2012 , 14:00   [Help] My First Plugin : Evolve Zombie to lv2
Reply With Quote #1

Hi ! J Maked my very first plugin Zombie Evolve . When you are zombie and when you buy this extra item , you will get 2500 healths (add) , Speed 300 and gravity 0.6 .I will be very happy if someone help me to add sounds , model change , Screen shake for 10 second and to add option when someone once buyed in one round he will not be able to buy again . J new and noob at scripting and j love zombie plague .
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <zombieplague>
#include <fun>

#define PLUGIN "[ZP] Extra Item : Evolve Zombie"
#define VERSION "1.3"
#define AUTHOR "Bloody Hamster"

#define COST 60

new g_HasEvolve[33]

new 
g_itemid

new cvar_gravity cvar_hp cvar_speed

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_itemid zp_register_extra_item("Evolve Zombie to level 2"COSTZP_TEAM_ZOMBIE)
        
    
cvar_hp register_cvar("zp_EvoldvedZombie_hp""2500")
    
cvar_speed register_cvar("zp_EvolvedZombie_speed""300.0")
           
cvar_gravity register_cvar("zp_EvolvedZombie_gravity""0.62")
}

public 
client_connect(id)
{
    
g_HasEvolve[id] = false
}

public 
client_disconnect(id)
{
    
g_HasEvolve[id] = false
}

public 
zp_extra_item_selected(iditemid)
{
    if ( 
itemid == g_itemid )
    {
        
g_HasEvolve[id] = true;
        
        
        
set_user_maxspeed(idget_pcvar_float cvar_speed ) )
        
set_user_health(idget_user_health(id) + get_pcvar_num cvar_hp ) )
        
set_user_gravity(idget_pcvar_float cvar_gravity ) )

        {        
        }
        
           
client_print(idprint_center"You have EVOLVED to lv2")
    }


Last edited by Bloody Hamster; 01-20-2012 at 15:13.
Bloody Hamster is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 01-18-2012 , 03:10   Re: [Help] My First Plugin : Evolve Zombie to lv2
Reply With Quote #2

This (almost if not the exact same code) already exists. Zombie Survival Pack!
Y060N is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 01-18-2012 , 03:36   Re: [Help] My First Plugin : Evolve Zombie to lv2
Reply With Quote #3

PHP Code:
g_HasEvolve[id] = 
Change all this code to:

PHP Code:
g_HasEvolve[id] = false
__________________
Snaker beatter is offline
Bloody Hamster
Junior Member
Join Date: Jan 2012
Location: Serbia , Belgrade
Old 01-19-2012 , 12:13   Re: [Help] My First Plugin : Evolve Zombie to lv2
Reply With Quote #4

Quote:
Originally Posted by Y060N View Post
This (almost if not the exact same code) already exists. Zombie Survival Pack!
j dont know . one man are gived me that cod
Bloody Hamster is offline
Bloody Hamster
Junior Member
Join Date: Jan 2012
Location: Serbia , Belgrade
Old 01-19-2012 , 12:14   Re: [Help] My First Plugin : Evolve Zombie to lv2
Reply With Quote #5

Quote:
Originally Posted by Snaker beatter View Post
PHP Code:
g_HasEvolve[id] = 
Change all this code to:

PHP Code:
g_HasEvolve[id] = false
thanks
Bloody Hamster 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:19.


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