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

Help / Support ZP4.3 antidote last human.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Marocvok
New Member
Join Date: May 2014
Old 06-01-2014 , 00:50   ZP4.3 antidote last human.
Reply With Quote #1

Hi all, How do you know that when the last human so you can not put a zombie antidote
Marocvok is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 06-01-2014 , 07:55   Re: ZP4.3 antidote last human.
Reply With Quote #2

Probably you can prevent it if you post your antidote code.
Torge is offline
aLy_zm
Member
Join Date: Oct 2011
Old 06-08-2014 , 10:52   Re: ZP4.3 antidote last human.
Reply With Quote #3

I need that. How to block antidote from zombie extra items when is only one human remaining?
aLy_zm is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 06-08-2014 , 21:13   Re: ZP4.3 antidote last human.
Reply With Quote #4

lol

Quote:
Originally Posted by Torge View Post
Probably you can prevent it if you post your antidote code.
Torge is offline
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 06-09-2014 , 08:54   Re: ZP4.3 antidote last human.
Reply With Quote #5

You can Make Last Human Survivor



Quote:
zp_lasthuman_survivor "1" - Turn ON/OFF Last human is Survivor


& this SMA
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "[ZP]Extension: Last Human is Survivor"
#define VERSION "1.0"
#define AUTHOR "Bummps"

new g_lasthuman[33]
new 
g_maxplayers
const Float:HUD_EVENT_X = -1.0
const Float:HUD_EVENT_Y 0.17
new cvar_lasthumansurvivor

public plugin_init() 
{
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled_Post"1)
    
register_forward(FM_ClientDisconnect"fw_ClientDisconnect_Post"1)
    
cvar_lasthumansurvivor register_cvar("zp_lasthuman_survivor""1")
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
fw_PlayerSpawn_Post()
{
check_last_human()
}
public 
fw_playerKilled_Post()
{
check_last_human()
}
public 
fw_ClientDisconnect_post()
{
check_last_human()
}
public 
check_last_human()
{
    static 
id
    
for (id 1id <= g_maxplayersid++)
    if (
get_pcvar_num(cvar_lasthumansurvivor) == 0)
        return
        
    if (
g_lasthuman[id])
    {
        
set_hudmessage(2020255HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        new 
name[32]
        
get_user_name(idname31)
        
show_hudmessage(0"%s e o sobrevivente!"name)
        
zp_make_user_survivor(id)
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/ 
__________________

Try & Try & Try Nothing Is impossible

Last edited by hichamera; 06-09-2014 at 08:56.
hichamera is offline
Send a message via Skype™ to hichamera
Torge
Veteran Member
Join Date: Oct 2011
Old 06-09-2014 , 14:09   Re: ZP4.3 antidote last human.
Reply With Quote #6

Quote:
Originally Posted by hichamera View Post
You can Make Last Human Survivor







& this SMA
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "[ZP]Extension: Last Human is Survivor"
#define VERSION "1.0"
#define AUTHOR "Bummps"

new g_lasthuman[33]
new 
g_maxplayers
const Float:HUD_EVENT_X = -1.0
const Float:HUD_EVENT_Y 0.17
new cvar_lasthumansurvivor

public plugin_init() 
{
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""fw_PlayerKilled_Post"1)
    
register_forward(FM_ClientDisconnect"fw_ClientDisconnect_Post"1)
    
cvar_lasthumansurvivor register_cvar("zp_lasthuman_survivor""1")
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
fw_PlayerSpawn_Post()
{
check_last_human()
}
public 
fw_playerKilled_Post()
{
check_last_human()
}
public 
fw_ClientDisconnect_post()
{
check_last_human()
}
public 
check_last_human()
{
    static 
id
    
for (id 1id <= g_maxplayersid++)
    if (
get_pcvar_num(cvar_lasthumansurvivor) == 0)
        return
        
    if (
g_lasthuman[id])
    {
        
set_hudmessage(2020255HUD_EVENT_XHUD_EVENT_Y10.05.01.01.0, -1)
        new 
name[32]
        
get_user_name(idname31)
        
show_hudmessage(0"%s e o sobrevivente!"name)
        
zp_make_user_survivor(id)
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1046\\ f0\\ fs16 \n\\ par }
*/ 
?
Torge 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 19:59.


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