Raised This Month: $ Target: $400
 0% 

knife plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 06-13-2010 , 10:32   knife plugin
Reply With Quote #1

i want to make my first plugin, it's just a simple knife in extra items menu. and when you buy it, and knife a zombie. it takes away 500hp (you can change this)
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <zombieplague>

new g_epicknife
new g_hasknife
new g_takeknife
new g_damage
new g_knifecost

new const medicgun_viewmodel[] = "models/v_knifen.mdl";

public plugin_init()
{
    register_plugin("Epic knife", "1.0", "omgitsme");
    register_event("CurWeapon", "event_CurWeapon", "b", "1=1");
    register_event("Damage", "event_Damage", "b", "500");
    g_epicknife = zp_register_extra_item("Epic knife" ,g_knifecost , ZP_TEAM_HUMAN);
    g_hasknife =
don't laught please, it's my first plugin
__________________
omgitsme is offline
Send a message via Skype™ to omgitsme
 


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 14:45.


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