Raised This Month: $ Target: $400
 0% 

Last Human infect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
headshot910
Member
Join Date: Apr 2012
Old 02-16-2015 , 07:50   Last Human infect
Reply With Quote #1

hi i has this plugin, its make last human can be infect and the round will end. you dont have to stab untill he out of hp
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>

#define PLUGIN "lasthumankill"
#define VERSION "0.1"
#define AUTHOR "Barney"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
RegisterHam(Ham_TakeDamage"player""fw_killlasthuman");
}

public 
client_putinserver(id)
{
    new 
g_Ham_Bot
    
if(!g_Ham_Bot && is_user_bot(id))
    {
        
g_Ham_Bot 1
        set_task
(0.1"Do_RegisterHam_Bot"id)
    }
}

public 
Do_RegisterHam_Bot(id)
{
    
RegisterHamFromEntity(Ham_TakeDamageid"fw_killlasthuman")
}        
public 
fw_killlasthuman(victiminflictorattackerFloat:damage
{
    if(
victim != attacker && is_user_connected(attacker) && zp_get_user_last_human(victim) && zp_get_user_zombie(attacker)) 
    {
        
zp_infect_uservictim )
        
zp_set_user_ammo_packsattackerzp_get_user_ammo_packsattacker ) + )
    }

and this is the error when compile

PHP Code:
// ----------------------------------------

//// lasthumankill.sma
// E:\Me\Counter-Strike Maked\cstrike\addons\amxmodx\scripting\lasthumankill.sma
(36) : error 021symbol already defined"zp_infect_user"
//
// 1 Error.
// Could not locate output file compiled\lasthumankill.amx (compile failed).
//
// Compilation Time: 0.09 sec
// ---------------------------------------- 

Last edited by headshot910; 02-16-2015 at 07:51.
headshot910 is offline
 



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 08:07.


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