Raised This Month: $ Target: $400
 0% 

[REQ] Very Simple Plugin (I think) - Human Knife Zombie


Post New Thread Reply   
 
Thread Tools Display Modes
WhightKnight
Senior Member
Join Date: Jun 2008
Old 03-15-2009 , 11:47   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #11

PERFECT! I'll test it out asap =D.

You should actually release this in in a "New Plugin Approval" or in Zombie Plague subforum.
__________________
WhightKnight is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 08-23-2013 , 16:37   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #12

can anyone fix this plugin please?
Attached Files
File Type: sma Get Plugin or Get Source (zp_instant_knife_kills.sma - 312 views - 2.1 KB)
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 08-24-2013 , 04:23   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #13

Fix what ?? it compiles fine... -,-
__________________
You will find everything u need :-
Catastrophe is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 08-24-2013 , 10:04   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #14

it did, but it doesnt work in the game for me, and I am also using 4.3.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 08-25-2013 , 01:13   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #15

It wont work with bots, else it shud
__________________
You will find everything u need :-
Catastrophe is offline
Old 08-26-2013, 16:22
tempito
This message has been deleted by tempito.
Old 09-02-2013, 15:29
tempito
This message has been deleted by tempito.
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-08-2013 , 11:44   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #16

can anyone help me with it please? idk if its hard or not :/, but I just want a plugin that allows humans kill a zombie with a single stab.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-08-2013 , 12:51   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #17

u want an adddon i mean all the time kill zombies with stab?
wicho is offline
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-08-2013 , 19:02   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #18

here:
PHP Code:

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>



public plugin_init()
{
    
register_plugin("[ZP] Addon: Stab""1.0""Cigojlo")
    
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")    
}


public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    if (
zp_get_user_zombie(victim) && !zp_get_user_nemesis(victim) && !zp_get_user_nemesis(attacker) && !zp_get_user_zombie(attacker) && !zp_get_user_survivor(attacker))
    {
        if (
inflictor == attacker)
        {
            new 
gtfo    
            gtfo  
get_user_weapon(attacker)
            
            if (
gtfo == CSW_KNIFE)
                
ExecuteHamB(Ham_Killedvictimattacker0)
            
            return 
HAM_HANDLED;
        }
    }
    
    return 
HAM_IGNORED;

Attached Files
File Type: sma Get Plugin or Get Source (zp_addon_stab.sma - 894 views - 819 Bytes)
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!

Last edited by Cigojlo; 09-08-2013 at 19:21.
Cigojlo is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-10-2013 , 13:09   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #19

Quote:
Originally Posted by wicho View Post
u want an adddon i mean all the time kill zombies with stab?
Yes, I want an addon that can kill zombies with a single stab

Quote:
Originally Posted by Cigojlo View Post
here:
PHP Code:

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <zombieplague>



public plugin_init()
{
    
register_plugin("[ZP] Addon: Stab""1.0""Cigojlo")
    
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")    
}


public 
fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if (
victim == attacker || !is_user_alive(attacker))
        return 
HAM_IGNORED;
    
    if (
zp_get_user_zombie(victim) && !zp_get_user_nemesis(victim) && !zp_get_user_nemesis(attacker) && !zp_get_user_zombie(attacker) && !zp_get_user_survivor(attacker))
    {
        if (
inflictor == attacker)
        {
            new 
gtfo    
            gtfo  
get_user_weapon(attacker)
            
            if (
gtfo == CSW_KNIFE)
                
ExecuteHamB(Ham_Killedvictimattacker0)
            
            return 
HAM_HANDLED;
        }
    }
    
    return 
HAM_IGNORED;

Thanks for your help! it seems that it doesnt work with podbots, btw I'm using zp 4.3 with new natives (last version I guess).
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Cigojlo
Senior Member
Join Date: May 2013
Location: Serbia / Belgrade
Old 09-10-2013 , 14:32   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #20

give me ur inc zombieplague file. P.S. working great with my podbots did u test it and give me inc file
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!

Last edited by Cigojlo; 09-10-2013 at 14:49.
Cigojlo 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 15:04.


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