Raised This Month: $208 Target: $400
 52% 

Subplugin Submission [T] List of Modified + Requested Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-31-2016 , 06:34   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1101

Nice. ;)
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
ifx
Senior Member
Join Date: Apr 2008
Old 02-20-2016 , 06:12   Re: [ZP] List of Modified + Requested Plugin (16/10/2014)
Reply With Quote #1102

Quote:
Originally Posted by zmd94 View Post
New update!

[ZP] Addon: Frag Leader.

There are 2 types of frag leader plugin:

1. ap_leader_v2.sma will give AP bonus to the frag leader at every end of the round.

2. ap_leader_v3.sma will give AP bonus to the frag leader at every end of the map.

What can you edit:
PHP Code:
    cvar_bonus register_cvar("zp_leader_bonus""1"// Enable the bonus for the frag leader
    
cvar_apamount register_cvar("zp_ap_amount""10"// Amount of AP given to the frag leader 
hello my friend. thanx u so much for ur plugins!

i have one little problem with it. can u make small change, that ammo pack gives not the frag leader but most dmg dealer at the end of the every current round?

cause in our server we have some players, who have top frags in scoreboard and they can just stand idle and give ammopack on every round, cause they already top frags

or change system that should give ammopacks not the top frag leader at all to the top frag leader in every current round.

thankx so much! <3

ps. we use zp 4.3

Last edited by ifx; 02-20-2016 at 06:14.
ifx is offline
plazma
Senior Member
Join Date: Oct 2013
Old 02-20-2016 , 20:16   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1103

Quote:
Originally Posted by plazma
I want to kill humans when touch it, not only last human, understand? no infection humans only kill.

thanks

PHP Code:
// Infection Bomb Explosion
infection_explode(ent)
{
    
// Round ended (bugfix)
    
if (g_endround) return;
    
    
// Get origin
    
static Float:originF[3]
    
pev(entpev_originoriginF)
    
    
// Make the explosion
    
create_blast(originF)
    
    
// Infection nade explode sound
    
static sound[64]
    
ArrayGetString(grenade_infectrandom_num(0ArraySize(grenade_infect) - 1), soundcharsmax(sound))
    
emit_sound(entCHAN_WEAPONsound1.0ATTN_NORM0PITCH_NORM)
    
    
// Get attacker
    
static attacker
    attacker 
pev(entpev_owner)
    
    
// Collisions
    
static victim
    victim 
= -1
    
    
while ((victim engfunc(EngFunc_FindEntityInSpherevictimoriginFNADE_EXPLOSION_RADIUS)) != 0)
    {
        
// Only effect alive non-spawnprotected humans
        
if (!is_user_valid_alive(victim) || g_zombie[victim] || g_nodamage[victim])
            continue;
        
        
// Last human is killed
        
if (fnGetHumans() == 1)
        {
            
ExecuteHamB(Ham_Killedvictimattacker0)
            continue;
        }
        
        
// Infected victim's sound
        
ArrayGetString(grenade_infect_playerrandom_num(0ArraySize(grenade_infect_player) - 1), soundcharsmax(sound))
        
emit_sound(victimCHAN_VOICEsound1.0ATTN_NORM0PITCH_NORM)
        
        
// Turn into zombie
        
zombieme(victimattacker0110)
    }
    
    
// Get rid of the grenade
    
engfunc(EngFunc_RemoveEntityent)

__________________
Free Palestine ♥
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 02-24-2016 , 05:46   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1104

So, problem solved?
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
plazma
Senior Member
Join Date: Oct 2013
Old 02-24-2016 , 19:32   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1105

Quote:
Originally Posted by zmd94 View Post
So, problem solved?
No but i want to make it what I say in last post.
__________________
Free Palestine ♥
plazma is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 02-25-2016 , 23:49   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1106

Plazma, just change below:
Code:
    while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)
    {
        // Only effect alive non-spawnprotected humans
        if (!is_user_valid_alive(victim) || g_zombie[victim] || g_nodamage[victim])
            continue;
        
        // Last human is killed
        if (fnGetHumans() == 1)
        {
            ExecuteHamB(Ham_Killed, victim, attacker, 0)
            continue;
        }
        
        // Infected victim's sound
        ArrayGetString(grenade_infect_player, random_num(0, ArraySize(grenade_infect_player) - 1), sound, charsmax(sound))
        emit_sound(victim, CHAN_VOICE, sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
        
        // Turn into zombie
        zombieme(victim, attacker, 0, 1, 1, 0)
    }
-->
Code:
    while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)
    {
        // Only effect alive non-spawnprotected humans
        if (!is_user_valid_alive(victim) || g_zombie[victim] || g_nodamage[victim])
            continue;
        
        ExecuteHamB(Ham_Killed, victim, attacker, 0)
    }
Ifx, just try below code:
Code:
#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>
#include <cstrike>

new cvar_bonus, cvar_apamount
new iMaxPlayers

new Float:g_fValue[33]

public plugin_init()
{
    register_plugin("[ZP] Addon: Frag Leader", "1.0", "Kis2e")
    
    cvar_bonus = register_cvar("zp_leader_bonus", "1") // Enable the bonus for the frag leader
    cvar_apamount = register_cvar("zp_ap_amount", "10") // Amount of AP given to the frag leader
    
    RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
    
    iMaxPlayers = get_maxplayers()
}

public zp_round_ended()
{
    set_task(0.1, "iLeader")
}

public fw_TakeDamage(Victim, Inflictor, Attacker, Float:Values, Values_bits) 
{ 
    if(is_user_alive(Attacker) && !zp_get_user_zombie(Attacker)) 
    {
        g_fValue[Attacker] += Values    
    }
}

public iLeader()
{
    new iFrags
    new iLeader = GetLeader_Frags(iFrags)
    new Players = UsersGetPlaying()
    new iPlayers[32], iNum, Others
    new szName[32]
    get_user_name( iLeader, szName, 31 )
    get_players( iPlayers, iNum, "ch" )

    for ( new i = 0; i < iNum; i++ )
        Others = g_fValue[i]
        
    if ( Players == 0 )
        return;
            
    else if ( iFrags == Others )
        return;
            
    else
        
    set_hudmessage(random_num(10,255), random(256), random(256), -1.0, 0.20, 0, 6.0, 12.0, 0.0, 0.0, -1)
    show_hudmessage(0, "The damage leader is %s with %.f damage", szName, iFrags )
        
    if ( get_pcvar_num(cvar_bonus) )
    {
        zp_set_user_ammo_packs(iLeader, zp_get_user_ammo_packs(iLeader) + get_pcvar_num(cvar_apamount))
        client_print(iLeader, print_chat, "[ZP] %s, you have recieved %d AP bonus as the frags leader", szName, get_pcvar_num(cvar_apamount))
    }
    
    new id
    for ( id = 1; id <= iMaxPlayers; id++ )
    {
        if ( is_user_connected(id) )
        {
            g_fValue[id] = 0
        }
    }
}

GetLeader_Frags( &iFrags )
{
    new iPlayers[32], iNum, id, i, iLeader, iFrag
    get_players( iPlayers, iNum, "ch" )
    
    for ( i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        iFrag = g_fValue[id]
        
        if ( iFrag > iFrags )
        {
            iFrags = iFrag
            iLeader = id
        }
    }
    return iLeader;
}

UsersGetPlaying()
{
    static iPlaying, id
    iPlaying = 0
    
    for ( id = 1; id <= iMaxPlayers; id++ )
    {
        if ( is_user_connected(id) )
        {
            if ( get_user_team(id) == 1 || get_user_team(id) == 2 )
                iPlaying++
        }
    }
    
    return iPlaying;
}
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Old 02-28-2016, 07:54
dr hicham
This message has been deleted by dr hicham.
Old 10-06-2016, 16:33
killer999
This message has been deleted by killer999.
sayantan
New Member
Join Date: Apr 2018
Old 04-17-2018 , 13:50   Re: [ZP] List of Modified + Requested Plugin (12/9/2014)
Reply With Quote #1107

where i need to reput this?
sayantan is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 05-06-2018 , 00:19   Re: [T] List of Modified + Requested Plugins
Reply With Quote #1108

Report what?
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
Reply


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 19:34.


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