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

$10 dollars for this plugin - Make Zombies Push Zombies Away


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jamil_hamida
Member
Join Date: Mar 2013
Location: Palestine
Old 04-06-2013 , 12:56   $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #1

$10 dollars for this plugin, i want to change plugin commands. Make Zombies Push Zombies Away. not Humans push Zombies Away.


please help...

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <zp50_core>
#include <zp50_class_survivor>
#include <zp50_class_zombie>

#define PLUGIN    "Zombie Knife Knockback"
#define VERSION    "1.0"
#define AUTHOR    "XXXX"


new cvar_knife cvar_knock cvar_jump cvar_survivor;

public 
plugin_init()
{
    
register_plugin(PLUGIN VERSION AUTHOR);
    
register_cvar("zp_knife"VERSIONFCVAR_SERVER);
    
register_event("Damage" "event_Damage" "b" "2>0");
    
register_event"CurWeapon""Event_CurWeapon""be""1=1" );

    
cvar_knife         register_cvar("zp_knife_knock" "1");
    
cvar_knock       register_cvar("zp_knife_power" "8");
    
cvar_jump          register_cvar("zp_knife_jump""50.0");
}

public 
event_Damage(id)
{
    if(!
get_pcvar_num(cvar_knife))
        return 
PLUGIN_CONTINUE;

    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;

    if(
zp_class_survivor_get(id) && get_pcvar_num(cvar_survivor) == 0)
        return 
PLUGIN_CONTINUE;

    new 
weapon attacker get_user_attacker(id weapon);

    if(!
is_user_alive(attacker))
        return 
PLUGIN_CONTINUE;

    if(
weapon == CSW_KNIFE)
    {
        new 
Float:vec[3];
        new 
Float:oldvelo[3];
        
get_user_velocity(idoldvelo);
        
create_velocity_vector(id attacker vec);
        
vec[0] += oldvelo[0];
        
vec[1] += oldvelo[1];
        
set_user_velocity(id vec);
    }

    return 
PLUGIN_CONTINUE;
}

public 
Event_CurWeaponid )
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE
    
    
new WeaponID read_data(2)
    if (
WeaponID != CSW_KNIFE)
        return  
PLUGIN_CONTINUE

    
return PLUGIN_CONTINUE;
}

stock create_velocity_vector(victim,attacker,Float:velocity[3])
{
    if(!
zp_core_is_zombie(victim) || !is_user_alive(attacker))
        return 
0;

    new 
Float:vicorigin[3];
    new 
Float:attorigin[3];
    
entity_get_vector(victim   EV_VEC_origin vicorigin);
    
entity_get_vector(attacker EV_VEC_origin attorigin);

    new 
Float:origin2[3]
    
origin2[0] = vicorigin[0] - attorigin[0];
    
origin2[1] = vicorigin[1] - attorigin[1];

    new 
Float:largestnum 0.0;

    if(
floatabs(origin2[0])>largestnumlargestnum floatabs(origin2[0]);
    if(
floatabs(origin2[1])>largestnumlargestnum floatabs(origin2[1]);

    
origin2[0] /= largestnum;
    
origin2[1] /= largestnum;

    
velocity[0] = ( origin2[0] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    
velocity[1] = ( origin2[1] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    if(
velocity[0] <= 20.0 || velocity[1] <= 20.0)
        
velocity[2] = random_float(200.0 275.0);

    return 
1;
}



public 
client_PreThink(id)
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE

    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if (
weapon != CSW_KNIFE)
        return 
PLUGIN_CONTINUE
        
    
if ((get_user_button(id) & IN_JUMP) && !(get_user_oldbutton(id) & IN_JUMP))
    {
        new 
flags entity_get_int(idEV_INT_flags)
        new 
waterlvl entity_get_int(idEV_INT_waterlevel)
        
        if (!(
flags FL_ONGROUND))
            return 
PLUGIN_CONTINUE
        
if (flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if (waterlvl 1)
            return 
PLUGIN_CONTINUE
                
        
new Float:fVelocity[3]
        
entity_get_vector(idEV_VEC_velocityfVelocity)
        
fVelocity[2] += get_pcvar_num(cvar_jump)
        
        
entity_set_vector(idEV_VEC_velocityfVelocity)
        
entity_set_int(idEV_INT_gaitsequence6)
    }
    return 
PLUGIN_CONTINUE;
}  

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
__________________
SMOKE

Last edited by jamil_hamida; 04-11-2013 at 10:58.
jamil_hamida is offline
Send a message via MSN to jamil_hamida Send a message via Yahoo to jamil_hamida Send a message via Skype™ to jamil_hamida
jamil_hamida
Member
Join Date: Mar 2013
Location: Palestine
Old 04-11-2013 , 10:59   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #2

i will pay $10 to $15 for who can help me
__________________
SMOKE
jamil_hamida is offline
Send a message via MSN to jamil_hamida Send a message via Yahoo to jamil_hamida Send a message via Skype™ to jamil_hamida
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-11-2013 , 11:35   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #3

Quote:
Originally Posted by jamil_hamida View Post
i will pay $10 to $15 for who can help me
I'll do it for you.

**Edited**
Nevermind, i can't event run ZP5.0 in my PC error all the time and zp5.0 sucks big time.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 04-11-2013 at 12:17.
yokomo is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 04-11-2013 , 11:54   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <zp50_core>
#include <zp50_class_survivor>
#include <zp50_class_zombie>

#define PLUGIN    "Zombie Knife Knockback"
#define VERSION    "1.0"
#define AUTHOR    "XXXX"


new cvar_knife cvar_knock cvar_jump cvar_survivor;

public 
plugin_init()
{
    
register_plugin(PLUGIN VERSION AUTHOR);
    
register_cvar("zp_knife"VERSIONFCVAR_SERVER);
    
register_event("Damage" "event_Damage" "b" "2>0");
    
register_event"CurWeapon""Event_CurWeapon""be""1=1" );

    
cvar_knife         register_cvar("zp_knife_knock" "1");
    
cvar_knock       register_cvar("zp_knife_power" "8");
    
cvar_jump          register_cvar("zp_knife_jump""50.0");
}

public 
event_Damage(id)
{
    if(!
get_pcvar_num(cvar_knife))
        return 
PLUGIN_CONTINUE;

    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;

    if(
zp_class_survivor_get(id) && get_pcvar_num(cvar_survivor) == 0)
        return 
PLUGIN_CONTINUE;

    new 
weapon attacker get_user_attacker(id weapon);

    if(!
is_user_alive(attacker))
        return 
PLUGIN_CONTINUE;

    if(
weapon == CSW_KNIFE)
    {
        new 
Float:vec[3];
        new 
Float:oldvelo[3];
        
get_user_velocity(idoldvelo);
        
create_velocity_vector(id attacker vec);
        
vec[0] += oldvelo[0];
        
vec[1] += oldvelo[1];
        
set_user_velocity(id vec);
    }

    return 
PLUGIN_CONTINUE;
}

public 
Event_CurWeaponid )
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE
    
    
new WeaponID read_data(2)
    if (
WeaponID != CSW_KNIFE)
        return  
PLUGIN_CONTINUE

    
return PLUGIN_CONTINUE;
}

stock create_velocity_vector(victim,attacker,Float:velocity[3])
{
    if(!
zp_core_is_zombie(attacker) || !is_user_alive(attacker) || !zp_core_is_zombie(victim))
        return 
0;

    new 
Float:vicorigin[3];
    new 
Float:attorigin[3];
    
entity_get_vector(victim   EV_VEC_origin vicorigin);
    
entity_get_vector(attacker EV_VEC_origin attorigin);

    new 
Float:origin2[3]
    
origin2[0] = vicorigin[0] - attorigin[0];
    
origin2[1] = vicorigin[1] - attorigin[1];

    new 
Float:largestnum 0.0;

    if(
floatabs(origin2[0])>largestnumlargestnum floatabs(origin2[0]);
    if(
floatabs(origin2[1])>largestnumlargestnum floatabs(origin2[1]);

    
origin2[0] /= largestnum;
    
origin2[1] /= largestnum;

    
velocity[0] = ( origin2[0] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    
velocity[1] = ( origin2[1] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    if(
velocity[0] <= 20.0 || velocity[1] <= 20.0)
        
velocity[2] = random_float(200.0 275.0);

    return 
1;
}



public 
client_PreThink(id)
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE

    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if (
weapon != CSW_KNIFE)
        return 
PLUGIN_CONTINUE
        
    
if ((get_user_button(id) & IN_JUMP) && !(get_user_oldbutton(id) & IN_JUMP))
    {
        new 
flags entity_get_int(idEV_INT_flags)
        new 
waterlvl entity_get_int(idEV_INT_waterlevel)
        
        if (!(
flags FL_ONGROUND))
            return 
PLUGIN_CONTINUE
        
if (flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if (waterlvl 1)
            return 
PLUGIN_CONTINUE
                
        
new Float:fVelocity[3]
        
entity_get_vector(idEV_VEC_velocityfVelocity)
        
fVelocity[2] += get_pcvar_num(cvar_jump)
        
        
entity_set_vector(idEV_VEC_velocityfVelocity)
        
entity_set_int(idEV_INT_gaitsequence6)
    }
    return 
PLUGIN_CONTINUE;
}  

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 


try it... if works it's for free
__________________
You will find everything u need :-

Last edited by Catastrophe; 04-11-2013 at 11:54.
Catastrophe is offline
jamil_hamida
Member
Join Date: Mar 2013
Location: Palestine
Old 04-11-2013 , 19:36   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #5

Quote:
Originally Posted by Catastrophe View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <zp50_core>
#include <zp50_class_survivor>
#include <zp50_class_zombie>

#define PLUGIN    "Zombie Knife Knockback"
#define VERSION    "1.0"
#define AUTHOR    "XXXX"


new cvar_knife cvar_knock cvar_jump cvar_survivor;

public 
plugin_init()
{
    
register_plugin(PLUGIN VERSION AUTHOR);
    
register_cvar("zp_knife"VERSIONFCVAR_SERVER);
    
register_event("Damage" "event_Damage" "b" "2>0");
    
register_event"CurWeapon""Event_CurWeapon""be""1=1" );

    
cvar_knife         register_cvar("zp_knife_knock" "1");
    
cvar_knock       register_cvar("zp_knife_power" "8");
    
cvar_jump          register_cvar("zp_knife_jump""50.0");
}

public 
event_Damage(id)
{
    if(!
get_pcvar_num(cvar_knife))
        return 
PLUGIN_CONTINUE;

    if(!
is_user_alive(id))
        return 
PLUGIN_CONTINUE;

    if(
zp_class_survivor_get(id) && get_pcvar_num(cvar_survivor) == 0)
        return 
PLUGIN_CONTINUE;

    new 
weapon attacker get_user_attacker(id weapon);

    if(!
is_user_alive(attacker))
        return 
PLUGIN_CONTINUE;

    if(
weapon == CSW_KNIFE)
    {
        new 
Float:vec[3];
        new 
Float:oldvelo[3];
        
get_user_velocity(idoldvelo);
        
create_velocity_vector(id attacker vec);
        
vec[0] += oldvelo[0];
        
vec[1] += oldvelo[1];
        
set_user_velocity(id vec);
    }

    return 
PLUGIN_CONTINUE;
}

public 
Event_CurWeaponid )
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE
    
    
new WeaponID read_data(2)
    if (
WeaponID != CSW_KNIFE)
        return  
PLUGIN_CONTINUE

    
return PLUGIN_CONTINUE;
}

stock create_velocity_vector(victim,attacker,Float:velocity[3])
{
    if(!
zp_core_is_zombie(attacker) || !is_user_alive(attacker) || !zp_core_is_zombie(victim))
        return 
0;

    new 
Float:vicorigin[3];
    new 
Float:attorigin[3];
    
entity_get_vector(victim   EV_VEC_origin vicorigin);
    
entity_get_vector(attacker EV_VEC_origin attorigin);

    new 
Float:origin2[3]
    
origin2[0] = vicorigin[0] - attorigin[0];
    
origin2[1] = vicorigin[1] - attorigin[1];

    new 
Float:largestnum 0.0;

    if(
floatabs(origin2[0])>largestnumlargestnum floatabs(origin2[0]);
    if(
floatabs(origin2[1])>largestnumlargestnum floatabs(origin2[1]);

    
origin2[0] /= largestnum;
    
origin2[1] /= largestnum;

    
velocity[0] = ( origin2[0] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    
velocity[1] = ( origin2[1] * (get_pcvar_float(cvar_knock) * 3000) ) / get_entity_distance(victim attacker);
    if(
velocity[0] <= 20.0 || velocity[1] <= 20.0)
        
velocity[2] = random_float(200.0 275.0);

    return 
1;
}



public 
client_PreThink(id)
{
    if (!
is_user_connected(id) || !is_user_alive(id) || zp_core_is_zombie(id))
        return 
PLUGIN_CONTINUE

    
new temp[2], weapon get_user_weapon(idtemp[0], temp[1])
    if (
weapon != CSW_KNIFE)
        return 
PLUGIN_CONTINUE
        
    
if ((get_user_button(id) & IN_JUMP) && !(get_user_oldbutton(id) & IN_JUMP))
    {
        new 
flags entity_get_int(idEV_INT_flags)
        new 
waterlvl entity_get_int(idEV_INT_waterlevel)
        
        if (!(
flags FL_ONGROUND))
            return 
PLUGIN_CONTINUE
        
if (flags FL_WATERJUMP)
            return 
PLUGIN_CONTINUE
        
if (waterlvl 1)
            return 
PLUGIN_CONTINUE
                
        
new Float:fVelocity[3]
        
entity_get_vector(idEV_VEC_velocityfVelocity)
        
fVelocity[2] += get_pcvar_num(cvar_jump)
        
        
entity_set_vector(idEV_VEC_velocityfVelocity)
        
entity_set_int(idEV_INT_gaitsequence6)
    }
    return 
PLUGIN_CONTINUE;
}  

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 
try it... if works it's for free

no man its not working .

help please
__________________
SMOKE
jamil_hamida is offline
Send a message via MSN to jamil_hamida Send a message via Yahoo to jamil_hamida Send a message via Skype™ to jamil_hamida
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 04-12-2013 , 00:48   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #6

First tell me what does this plugin do?
__________________
You will find everything u need :-
Catastrophe is offline
ben_x
Member
Join Date: Apr 2013
Old 04-12-2013 , 03:37   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #7

this is just a plugin for survivor to clear off his surroundings.
ben_x is offline
ben_x
Member
Join Date: Apr 2013
Old 04-12-2013 , 03:37   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #8

Not a good idea to give this power to every zombie
ben_x is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 04-12-2013 , 04:40   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #9

Ill do it for you for $15 through paypal. Invite me @skype : leoalex777
Podarok is offline
jamil_hamida
Member
Join Date: Mar 2013
Location: Palestine
Old 04-12-2013 , 10:38   Re: $10 dollars for this plugin - Make Zombies Push Zombies Away
Reply With Quote #10

Quote:
Originally Posted by Podarok View Post
Ill do it for you for $15 through paypal. Invite me @skype : leoalex777

i want to make zombie push zombie away to help them being more effective in game playing

when Zombie Press Right Mouse Click, it Will Push Another Zombie Away

the same idea that Human push Zombies Away
__________________
SMOKE

Last edited by jamil_hamida; 04-12-2013 at 10:39.
jamil_hamida is offline
Send a message via MSN to jamil_hamida Send a message via Yahoo to jamil_hamida Send a message via Skype™ to jamil_hamida
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 13:03.


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