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

[BIO]: Zombie evolution plugin bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZombieTheMan01
Senior Member
Join Date: Aug 2015
Location: Turkey
Old 02-19-2017 , 07:07   [BIO]: Zombie evolution plugin bug
Reply With Quote #1

Yeah. I'm currently dealing plugin with the zombie evolution. But every time I try, there's a constant errors. The health is not full and evolution does not skip a level.
Thank you in advance for your help.
CODES:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <biohazard>

#define PLUGIN "[BIO] Zombie Evolution"
#define VERSION "Test v0.01 "
#define AUTHOR "YunusReyiz"

new g_infect[33],g_evo_level[33]

public 
plugin_init() 
{    
    
register_plugin(PLUGINVERSIONAUTHOR)    
}

public 
client_putinserver(id)
{
    
pro_test(id)
}

public 
pro_test(id)
{
    
set_task(0.1"zombie_evolution"id__"b")
}

public 
ResetKills(id)
{
    new 
players[32] , inum
    get_players
(playersinum)
    for(new 
0inum; ++a)
        
g_infect[a] = 0
}

public 
event_infect(victimattacker)
{
    
zombie_evolution(victimattacker)
}

public 
zombie_evolution(victimattacker)
{
    
g_infect[victim] == is_user_zombie(victim)
    if(
is_user_zombie(attacker))
    {
        
set_hudmessage(2552550, -1.00.8206.01.10.00.0, -1)
        if(
g_infect[victim] < 3)
        {
            
show_hudmessage(attacker"[EVOLUTION LEVEL : 0]")
        }
        else if(
g_infect[victim] <= && g_evo_level[attacker] == 0)
        {
            
g_evo_level[attacker] = 1
            set_user_health
(victim7000)
            
show_hudmessage(attacker"[EVOLUTION LEVEL : 1]")
        }
        else if(
g_infect[victim] <= && g_evo_level[attacker] == 1)
        {
            
g_evo_level[attacker] = 2
            set_user_health
(victimget_user_health(victim) + 2000)
            
show_hudmessage(attacker"[EVOLUTION LEVEL : 2]")
        
        }
        else if(
g_infect[victim] >= && g_evo_level[attacker] == 2)
        {
            
g_evo_level[attacker] = 3
            set_user_health
(victim14000)
            
show_hudmessage(attacker"[EVOLUTION LEVEL : Max]")
        }
    }

__________________
FREE PLUGINS:

2021 and before -> ALL PLUGIN LINK IS HERE <-

2022:
Zombie: The Original [%70 Completed]

Last edited by ZombieTheMan01; 02-19-2017 at 08:02.
ZombieTheMan01 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 07:16.


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