Raised This Month: $32 Target: $400
 8% 

ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)


Post New Thread Reply   
 
Thread Tools Display Modes
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-11-2014 , 11:19   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #71

Try this https://forums.alliedmods.net/showpo...81&postcount=3
wicho is offline
Timon_ZM
Junior Member
Join Date: Nov 2014
Old 11-11-2014 , 11:27   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #72

Quote:
Originally Posted by wicho View Post


the same thing is not working
Timon_ZM is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-11-2014 , 11:34   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #73

Change this:

PHP Code:
RegisterHam(Ham_Killed"player""fw_Killed"
to this:

PHP Code:
RegisterHam(Ham_Killed"player""fw_Killed"1
And try..
wicho is offline
Timon_ZM
Junior Member
Join Date: Nov 2014
Old 11-11-2014 , 11:48   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #74

not work
Timon_ZM is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-11-2014 , 12:14   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #75

yep, i tried the respawn too.. doesn't work.. but with wicho's plugin it is working, try to add wicho's plugin before the gamemodes in the plugins.ini ... and btw you dont get respawn if you get slayed

Last edited by Depresie; 11-11-2014 at 12:24.
Depresie is offline
Timon_ZM
Junior Member
Join Date: Nov 2014
Old 11-11-2014 , 12:24   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #76

Sorry I can not embed code

#include <amxmodx>
#include <hamsandwich>
#include <zp50_core>
#include <zp50_gamemodes>
#include <zp50_class_nemesis>
#include <zp50_class_survivor>


#define PLUGIN "Armageddon Mode Special respawn"
#define VERSION "1.0"
#define AUTHOR "Catastrophe"

#define RESP_DELAY 4.0


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
}

public fw_PlayerKilled_Post(victim, attacker, shouldgib)
{
if(!is_user_alive(attacker) || zp_gamemodes_get_current() != zp_gamemodes_get_id("Armageddon Mode"))
return

if(zp_class_survivor_get(victim))
{
set_task(RESP_DELAY, "do_resp1", victim)
}

if(zp_class_nemesis_get(victim))
{
set_task(RESP_DELAY, "do_resp2", victim)
}
}

public do_resp1(id)
{
if(!is_user_connected(id))
return

ExecuteHam(Ham_CS_RoundRespawn, id)
zp_class_survivor_set(id)

}

public do_resp2(id)
{
if(!is_user_connected(id))
return

ExecuteHam(Ham_CS_RoundRespawn, id)
zp_class_nemesis_set(id)

}

but so will only work with the revival in the surviving or Nemesis and full of life, and should be from 0.25 to 100%
and yet there is a trifle
Timon_ZM is offline
Timon_ZM
Junior Member
Join Date: Nov 2014
Old 11-11-2014 , 15:16   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #77

Help please insert it all in zp50_deathmatch, as not working correctly
Timon_ZM is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-11-2014 , 19:27   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #78

No need to combine the code in zp50_deathmatch.sma file. The code should do exactly as your request.
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zp50_core>
#include <zp50_gamemodes>
#include <zp50_class_nemesis>
#include <zp50_class_survivor>  


#define PLUGIN "Armageddon Mode Special respawn"
#define VERSION "1.0"
#define AUTHOR "Catastrophe"

#define RESP_DELAY 5.0


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Killed"player""fw_Killed")
}

public 
fw_Killed(victimattackershouldgib)
{
         if(!
is_user_alive(attacker) || zp_gamemodes_get_current() != zp_gamemodes_get_id("Armageddon Mode"))
         return
    
         if(
zp_class_survivor_get(victim))
         {
         
set_task(RESP_DELAY"do_resp1"victim)
         }
    
         if(
zp_class_nemesis_get(victim))
         {
         
set_task(RESP_DELAY"do_resp2"victim)
         }
}

public 
do_resp1(id)
{
        if(!
is_user_connected(id))
        return
    
        
ExecuteHam(Ham_CS_RoundRespawnid
        
zp_class_survivor_set(id)
         
}

public 
do_resp2(id)
{
        if(!
is_user_connected(id))
        return
    
        
ExecuteHam(Ham_CS_RoundRespawnid
        
zp_class_nemesis_set(id)
         


Last edited by zmd94; 11-11-2014 at 19:28.
zmd94 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-11-2014 , 23:22   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #79

Depresie try this and tell me if it revives when you give him slay..

PHP Code:
#include <amxmodx>  
#include <hamsandwich>  
#include <zp50_core>  
#include <zp50_gamemodes>
#include <zp50_class_nemesis>
#include <zp50_class_survivor>  

#define PLUGIN   "Respawn on armageddon"  
#define AUTHOR        "who cares"  
#define VERSION         "1.0"  

#define TASK_AUTORESPAWN  100  
#define ID_AUTORESPAWN (taskid - TASK_AUTORESPAWN)  

const Float:AUTORESPAWN_DELAY 5.0  

new g_GameModeArmageddonID
     
new g_CvarDeathMatch 
new g_MaxPlayers  

public plugin_init() 
{  
    
register_plugin(PLUGINVERSIONAUTHOR)  
            
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
           
    
g_MaxPlayers get_maxplayers()  
}  

public 
plugin_cfg()  
{   
    
g_GameModeArmageddonID zp_gamemodes_get_id("Armageddon Mode")
    
g_CvarDeathMatch get_cvar_pointer("zp_deathmatch"
}  

public 
fw_PlayerKilled(victimattackershouldgib)
{  
    if (
victim == attacker || !is_user_connected(attacker))
        return;

    if (!
get_pcvar_num(g_CvarDeathMatch))  
        return;  
              
    if(
zp_gamemodes_get_current() == g_GameModeArmageddonID
    { 
            
set_task(AUTORESPAWN_DELAY"auto_respawn_player"victim+TASK_AUTORESPAWN)          
    }           
     
}  

public 
auto_respawn_player(taskid)  
{  
    if(
is_user_alive(ID_AUTORESPAWN))
            return;  
                
    if(
get_pcvar_num(g_CvarDeathMatch) == || (get_pcvar_num(g_CvarDeathMatch) == && random_num(01)) || (get_pcvar_num(g_CvarDeathMatch) == && zp_core_get_zombie_count() < fnGetAlive()/2))  
    {  
        
zp_class_nemesis_set(ID_AUTORESPAWN)  
    }   
     
    else  
    
    {  
        
zp_class_survivor_set(ID_AUTORESPAWN)  
    }  
     
    
ExecuteHamB(Ham_CS_RoundRespawnID_AUTORESPAWN)  
}  

fnGetAlive() 
{  
    new 
iAliveid  
      
    
for (id 1id <= g_MaxPlayersid++) 
    {  
        if (
is_user_alive(id))  
            
iAlive++  
    }  
    return 
iAlive;  


Last edited by wicho; 11-11-2014 at 23:45.
wicho is offline
Old 11-14-2014, 15:29
Timon_ZM
This message has been deleted by Timon_ZM.
Timon_ZM
Junior Member
Join Date: Nov 2014
Old 11-18-2014 , 10:43   Re: ZP5.0.8a + Sniper & Assassin + Compatibility with ZPA (2014/08/03)
Reply With Quote #80

please do zp50_deathmatch same as in zombie plague Advance 1.6.1

zp_deathmatch 4 // Deathmatch mode, respawn as: [0-disabled // 1-human // 2-zombie // 3-randomly // 4-balance]
zp_spawn_delay 3 // Delay before respawning on deathmatch mode in seconds
zp_spawn_protection 1 // Spawn protection time for deathmatch in seconds [0-disabled]
zp_respawn_on_suicide 1 // Respawn players if they commited suicide
zp_respawn_after_last_human 1 // Respawn players if only the last human is left
zp_infection_allow_respawn 0 // Allow respawning on infection rounds
zp_nem_allow_respawn 0 // Allow respawning on nemesis rounds
zp_surv_allow_respawn 0 // Allow respawning on survivor rounds
zp_sniper_allow_respawn 0 // Allow respawning on sniper rounds
zp_assassin_allow_respawn 0 // Allow respawning on assassin rounds
zp_swarm_allow_respawn 0 // Allow respawning on swarm rounds
zp_plague_allow_respawn 0 // Allow respawning on plague rounds
zp_respawn_zombies 1 // Whether to respawn killed zombies
zp_respawn_humans 1 // Whether to respawn killed humans
zp_respawn_nemesis 1 // Whether to respawn killed nemesis
zp_respawn_survivors 1 // Whether to respawn killed survivors
zp_respawn_snipers 1 // Whether to respawn killed snipers
zp_respawn_assassins 1 // Whether to respawn killed assassins
zp_lnj_allow_respawn 1 // Allow respawning on armageddon rounds
zp_lnj_respawn_surv 1 // Whether to turn a spawned human into a survivor during Armageddon mode
zp_lnj_respawn_nem 1 // Whether to turn a spawned zombie into a nemesis during Armageddon mode
Timon_ZM 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 02:01.


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