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

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


Post New Thread Reply   
 
Thread Tools Display Modes
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-10-2013 , 16:37   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #21

Quote:
Originally Posted by Cigojlo View Post
give me ur inc zombieplague file. P.S. working great with my podbots did u test it and give me inc file
Thanks for answering so fast, yes I did, I tested your plugin, but it didnt work.
Attached Files
File Type: inc zombieplague.inc (12.7 KB, 48 views)
__________________
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 , 17:33   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #22

its all same from include file, should be working. And please download sma and compile add in ur plugins and try, and 100% ur compiler is screwed if not working, its happen sometimes to all
__________________
Quote:
Originally Posted by ghinghis View Post
the fuking TOP.SMA cannot be compiled moron !!!!!
Cigojlo is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 09-10-2013 , 23:03   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #23

Quote:
Originally Posted by Cigojlo View Post
its all same from include file, should be working. And please download sma and compile add in ur plugins and try, and 100% ur compiler is screwed if not working, its happen sometimes to all
well, it doesnt work, thanks anyway .
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
Old 09-14-2013, 19:08
tempito
This message has been deleted by tempito.
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 01-26-2014 , 11:47   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #24

can anyone help me please, I just want a plugin where humans can kill zombies with one single headshot stab.
__________________
My very first zp server movie.
http://www.youtube.com/watch?v=yvTmlFr_Y-4 <- now with translation in english

tempito is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 01-27-2014 , 03:51   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #25

not tested should work
Quote:
#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(victim, inflictor, attacker, Float:damage, damage_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)
{
static AttackerWpn, VictimBodyPart
attacker = get_user_attacker( victim, AttackerWpn, VictimBodyPart )

if (AttackerWpn == CSW_KNIFE && VictimBodyPart == HIT_HEAD)
ExecuteHamB(Ham_Killed, victim, attacker, 0)

return HAM_HANDLED;
}
}

return HAM_IGNORED;
}
__________________
<3<3
being noob is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-27-2014 , 09:46   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #26

You use too many unnecessary things..... U cudve just set the damage to get_user_health(id) + 1 instead of calling another ham function ..... but first off to check headshot u cud have used Ham_Traceattack instead of takedamage.... Easy and efficient .......

And dont say smthing stupid like "why dont u make the code then", im here to help ..... not spoonfeed ....

And dont reply if its not related to the topic cuz i know u ..... flaming everything u see...
__________________
You will find everything u need :-
Catastrophe is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 01-27-2014 , 12:08   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #27

actually this code is not mine i just added if its headshot or not
i told him to check if its working or not
ur reply was not expected/needed -__-
__________________
<3<3
being noob is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 01-28-2014 , 03:47   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #28

Well first off .... u dont check for a stab so your code isnt what he needs, secondly u kill the use with worldspawn so if the zp respawn system is enabled zombies wont respawn ..... if u ever gave correct codes ... u dont need to expect my reply......
__________________
You will find everything u need :-
Catastrophe is offline
tempito
Senior Member
Join Date: Feb 2009
Location: Peru
Old 01-28-2014 , 10:34   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #29

Quote:
Originally Posted by Catastrophe View Post
Well first off .... u dont check for a stab so your code isnt what he needs, secondly u kill the use with worldspawn so if the zp respawn system is enabled zombies wont respawn ..... if u ever gave correct codes ... u dont need to expect my reply......
can you help me Catastrophe? I really want to finish my server to play with my friends and siblings (:
__________________
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 01-28-2014 , 11:46   Re: [REQ] Very Simple Plugin (I think) - Human Knife Zombie
Reply With Quote #30

There u go.....

And when deadly shot will be active this plugin will not kill with headshot 1/2 of the time because it messes with the code of headshot .... else works fine ;)

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <cstrike>
#include <hamsandwich>
#include <cs_ham_bots_api>

#define PLUGIN "[ZP]Addon: Stab kill"
#define VERSION "1.0"
#define AUTHOR "Catastrophe"

new is_stab[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)

        
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""fw_secondary_attack_knife")

        
RegisterHam(Ham_TakeDamage"player""fw_damage")
        
RegisterHamBots(Ham_TakeDamage"fw_damage")  
}

public 
fw_damage(victiminflictorattackerFloat:damagedmgbits)

       if(!
is_user_alive(attacker) || !zp_get_user_zombie(victim) || zp_get_user_zombie(attacker) || zp_get_user_nemesis(victim))
       return

       new 
weaponb_part
       attacker 
get_user_attacker(victimweaponb_part)

       if(!
is_user_alive(attacker))
       return

       if(
weapon == CSW_KNIFE && b_part == HIT_HEAD && is_stab[attacker])
       {    
       
ExecuteHam(Ham_TakeDamagevictim0attackerfloat(get_user_health(victim)) + 1.0DMG_BULLET)
       
is_stab[attacker] = false
       
}
}

public 
fw_secondary_attack_knife(ent)
{
       if(!
pev_valid(ent))
       return

       new 
owner pev(entpev_owner)

       if(!
pev_valid(owner))
       return
       
       if(
is_user_alive(owner))
       {
           
is_stab[owner] = true
       
}              

__________________
You will find everything u need :-
Catastrophe 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 04:54.


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