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

I can't compile this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ykaru
Member
Join Date: Aug 2019
Old 11-30-2019 , 12:22   I can't compile this
Reply With Quote #1

PHP Code:
Cadou.sma(31) : error 048: array dimensions do not match
Cadou
.sma(186) : error 035argument type mismatch (argument 1)
Cadou.sma(188) : error 035argument type mismatch (argument 4)
Cadou.sma(189) : error 035argument type mismatch (argument 1
This is what i get when i try to compile it.
Can someone modify the plugin and explain me what's wrong ?

Code:
    /*
    Name: [ZP] Addon: Bonus Box
    Author: PomanoB & STRELOK
    Version 1.0

    Based on [ZP] DM Item's by PomanoB
    */

    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <zombieplague>
    #include <hamsandwich>

    #define PLUGIN "[ZP] Addon: Bonus Box"
    #define VERSION "1.0"
    #define AUTHOR "PomanoB & Accelerator"

    #define OFFSET_FLASH_AMMO 387
    #define OFFSET_HE_AMMO 388
    #define OFFSET_SMOKE_AMMO 389

    new const item_class_name[] = "dm_item"

    new g_models[][] = {"models/basebuilder/CadouKript.mdl"}

    public plugin_precache()
    {
    for (new i = 0; i < sizeof g_models; i++)
    precache_model(g_models)	
    }

    public plugin_init()
    {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	
    	register_forward(FM_Touch, "fwd_Touch")
    	
    	register_event("HLTV", "round_start", "a", "1=0", "2=0")
    	
    	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
    	
    	register_dictionary("bonus_box.txt")
    }

    public fwd_Touch(toucher, touched)
    {
    	if (!is_user_alive(toucher) || !pev_valid(touched))
    		return FMRES_IGNORED
    	
    	new classname[32]	
    	pev(touched, pev_classname, classname, 31)
    	if (!equal(classname, item_class_name))
    		return FMRES_IGNORED
    	
    	
    	
    	give_item(toucher)
    	set_pev(touched, pev_effects, EF_NODRAW)
    	set_pev(touched, pev_solid, SOLID_NOT)
    	
    	return FMRES_IGNORED
    	
    }

    public fw_PlayerKilled(victim, attacker, shouldgib)
    {
    	if (!is_user_connected(attacker) || !is_user_connected(victim) || attacker == victim || !attacker)
    		return HAM_IGNORED
    	
    	
    	new random = random_num(0, 8)
    	
    	if (random == 1 || random == 4 || random == 6)
    	{
    		new origin[3]
    		get_user_origin(victim, origin, 0)
    		
    		addItem(origin)
    	}
    	
    	return HAM_IGNORED
    }

    public removeEntity(ent)
    {
    	if (pev_valid(ent))
    		engfunc(EngFunc_RemoveEntity, ent)
    }

    public addItem(origin[3])
    {
    	new ent = fm_create_entity("info_target")
    	set_pev(ent, pev_classname, item_class_name)
    	
    	engfunc(EngFunc_SetModel,ent, g_models[random_num(0, sizeof g_models - 1)])

    	set_pev(ent,pev_mins,Float:{-10.0,-10.0,0.0})
    	set_pev(ent,pev_maxs,Float:{10.0,10.0,25.0})
    	set_pev(ent,pev_size,Float:{-10.0,-10.0,0.0,10.0,10.0,25.0})
    	engfunc(EngFunc_SetSize,ent,Float:{-10.0,-10.0,0.0},Float:{10.0,10.0,25.0})

    	set_pev(ent,pev_solid,SOLID_BBOX)
    	set_pev(ent,pev_movetype,MOVETYPE_FLY)
    	
    	new Float:fOrigin[3]
    	IVecFVec(origin, fOrigin)
    	set_pev(ent, pev_origin, fOrigin)
    	
    	set_pev(ent,pev_renderfx,kRenderFxGlowShell)
    	switch(random_num(1,4))
    	{
    		case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})
    		case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
    		case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})
    		case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
    	}
    }

    public give_item(id)
    {
    	new zombie 
    	zombie = zp_get_user_zombie(id)
    	
    	new i = random_num(0, (zombie ? 5 : 13))
    	switch (i)
    	{
    		case 0:
    		{
    			fm_set_user_health(id, get_user_health(id) + (zombie ? 750 : 75))
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")
    		}
    		case 1:
    		{
    			fm_set_user_health(id, get_user_health(id) - (zombie ? 500 : 50))
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_DOWN")
    		}
    		case 2:
    		{
    			fm_set_user_health(id, get_user_health(id) + (zombie ? 1000 : 50))
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")
    		}
    		case 3:
    		{
    			fm_set_user_gravity(id, 0.5)
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_GRAVITY")
    		}
    		case 4:
    		{
    			fm_set_user_armor(id, get_user_armor(id) + 200)
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")
    		}
    		case 5:
    		{
    			fm_set_user_armor(id, get_user_armor(id) + 110)
    			ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")
    		}
    	}
    }

    public round_start()
    {
    	new ent = FM_NULLENT
    	static string_class[] = "classname"
    	while ((ent = engfunc(EngFunc_FindEntityByString, ent, string_class, item_class_name))) 
    		set_pev(ent, pev_flags, FL_KILLME)
    }

    // Stock: ChatColor!
    stock ChatColor(const id, const input[], any:...)
    {
    	new count = 1, players[32]
    	static msg[191]
    	vformat(msg, 190, input, 3)
    	
    	replace_all(msg, 190, "!g", "^4") // Green Color
    	replace_all(msg, 190, "!y", "^1") // Default Color
    	replace_all(msg, 190, "!team", "^3") // Team Color
    	replace_all(msg, 190, "!team2", "^0") // Team2 Color
    	
    	if (id) players[0] = id; else get_players(players, count, "ch")
    	{
    		for (new i = 0; i < count; i++)
    		{
    			if (is_user_connected(players))
    			{
    				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)
    				write_byte(players);
    				write_string(msg);
    				message_end();
    			}
    		}
    	}
    }
Ykaru is offline
thEsp
BANNED
Join Date: Aug 2017
Old 11-30-2019 , 12:32   Re: I can't compile this
Reply With Quote #2

It should be working now, please try. (I cannot compile it at the moment...)

Code:
/*     Name: [ZP] Addon: Bonus Box     Author: PomanoB & STRELOK     Version 1.0     Based on [ZP] DM Item's by PomanoB     */     #include <amxmodx>     #include <amxmisc>     #include <fakemeta>     #include <fakemeta_util>     #include <zombieplague>     #include <hamsandwich>     #define PLUGIN "[ZP] Addon: Bonus Box"     #define VERSION "1.0"     #define AUTHOR "PomanoB & Accelerator"     #define OFFSET_FLASH_AMMO 387     #define OFFSET_HE_AMMO 388     #define OFFSET_SMOKE_AMMO 389     new const item_class_name[] = "dm_item"     new g_models[][] = {"models/basebuilder/CadouKript.mdl"}     public plugin_precache()     {     for (new i = 0; i < sizeof g_models; i++)     precache_model(g_models[i])        }     public plugin_init()     {         register_plugin(PLUGIN, VERSION, AUTHOR)                 register_forward(FM_Touch, "fwd_Touch")                 register_event("HLTV", "round_start", "a", "1=0", "2=0")                 RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")                 register_dictionary("bonus_box.txt")     }     public fwd_Touch(toucher, touched)     {         if (!is_user_alive(toucher) || !pev_valid(touched))             return FMRES_IGNORED                 new classname[32]            pev(touched, pev_classname, classname, 31)         if (!equal(classname, item_class_name))             return FMRES_IGNORED                                 give_item(toucher)         set_pev(touched, pev_effects, EF_NODRAW)         set_pev(touched, pev_solid, SOLID_NOT)                 return FMRES_IGNORED             }     public fw_PlayerKilled(victim, attacker, shouldgib)     {         if (!is_user_connected(attacker) || !is_user_connected(victim) || attacker == victim || !attacker)             return HAM_IGNORED                         new random = random_num(0, 8)                 if (random == 1 || random == 4 || random == 6)         {             new origin[3]             get_user_origin(victim, origin, 0)                         addItem(origin)         }                 return HAM_IGNORED     }     public removeEntity(ent)     {         if (pev_valid(ent))             engfunc(EngFunc_RemoveEntity, ent)     }     public addItem(origin[3])     {         new ent = fm_create_entity("info_target")         set_pev(ent, pev_classname, item_class_name)                 engfunc(EngFunc_SetModel,ent, g_models[random_num(0, sizeof g_models - 1)])         set_pev(ent,pev_mins,Float:{-10.0,-10.0,0.0})         set_pev(ent,pev_maxs,Float:{10.0,10.0,25.0})         set_pev(ent,pev_size,Float:{-10.0,-10.0,0.0,10.0,10.0,25.0})         engfunc(EngFunc_SetSize,ent,Float:{-10.0,-10.0,0.0},Float:{10.0,10.0,25.0})         set_pev(ent,pev_solid,SOLID_BBOX)         set_pev(ent,pev_movetype,MOVETYPE_FLY)                 new Float:fOrigin[3]         IVecFVec(origin, fOrigin)         set_pev(ent, pev_origin, fOrigin)                 set_pev(ent,pev_renderfx,kRenderFxGlowShell)         switch(random_num(1,4))         {             case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})             case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})             case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})             case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})         }     }     public give_item(id)     {         new zombie         zombie = zp_get_user_zombie(id)                 new i = random_num(0, (zombie ? 5 : 13))         switch (i)         {             case 0:             {                 fm_set_user_health(id, get_user_health(id) + (zombie ? 750 : 75))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")             }             case 1:             {                 fm_set_user_health(id, get_user_health(id) - (zombie ? 500 : 50))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_DOWN")             }             case 2:             {                 fm_set_user_health(id, get_user_health(id) + (zombie ? 1000 : 50))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")             }             case 3:             {                 fm_set_user_gravity(id, 0.5)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_GRAVITY")             }             case 4:             {                 fm_set_user_armor(id, get_user_armor(id) + 200)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")             }             case 5:             {                 fm_set_user_armor(id, get_user_armor(id) + 110)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")             }         }     }     public round_start()     {         new ent = FM_NULLENT         static string_class[] = "classname"         while ((ent = engfunc(EngFunc_FindEntityByString, ent, string_class, item_class_name)))             set_pev(ent, pev_flags, FL_KILLME)     }     // Stock: ChatColor!     stock ChatColor(const id, const input[], any:...)     {         new count = 1, players[32]         static msg[191]         vformat(msg, 190, input, 3)                 replace_all(msg, 190, "!g", "^4") // Green Color         replace_all(msg, 190, "!y", "^1") // Default Color         replace_all(msg, 190, "!team", "^3") // Team Color         replace_all(msg, 190, "!team2", "^0") // Team2 Color                 if (id) players[0] = id; else get_players(players, count, "ch")         {             for (new i = 0; i < count; i++)             {                 if (is_user_connected(players[i]))                 {                     message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])                     write_byte(players[i]);                     write_string(msg);                     message_end();                 }             }         }     }

Last edited by thEsp; 11-30-2019 at 12:33.
thEsp is offline
Ykaru
Member
Join Date: Aug 2019
Old 11-30-2019 , 14:46   Re: I can't compile this
Reply With Quote #3

Quote:
Originally Posted by thEsp View Post
It should be working now, please try. (I cannot compile it at the moment...)

Code:
/*     Name: [ZP] Addon: Bonus Box     Author: PomanoB & STRELOK     Version 1.0     Based on [ZP] DM Item's by PomanoB     */     #include <amxmodx>     #include <amxmisc>     #include <fakemeta>     #include <fakemeta_util>     #include <zombieplague>     #include <hamsandwich>     #define PLUGIN "[ZP] Addon: Bonus Box"     #define VERSION "1.0"     #define AUTHOR "PomanoB & Accelerator"     #define OFFSET_FLASH_AMMO 387     #define OFFSET_HE_AMMO 388     #define OFFSET_SMOKE_AMMO 389     new const item_class_name[] = "dm_item"     new g_models[][] = {"models/basebuilder/CadouKript.mdl"}     public plugin_precache()     {     for (new i = 0; i < sizeof g_models; i++)     precache_model(g_models[i])        }     public plugin_init()     {         register_plugin(PLUGIN, VERSION, AUTHOR)                 register_forward(FM_Touch, "fwd_Touch")                 register_event("HLTV", "round_start", "a", "1=0", "2=0")                 RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")                 register_dictionary("bonus_box.txt")     }     public fwd_Touch(toucher, touched)     {         if (!is_user_alive(toucher) || !pev_valid(touched))             return FMRES_IGNORED                 new classname[32]            pev(touched, pev_classname, classname, 31)         if (!equal(classname, item_class_name))             return FMRES_IGNORED                                 give_item(toucher)         set_pev(touched, pev_effects, EF_NODRAW)         set_pev(touched, pev_solid, SOLID_NOT)                 return FMRES_IGNORED             }     public fw_PlayerKilled(victim, attacker, shouldgib)     {         if (!is_user_connected(attacker) || !is_user_connected(victim) || attacker == victim || !attacker)             return HAM_IGNORED                         new random = random_num(0, 8)                 if (random == 1 || random == 4 || random == 6)         {             new origin[3]             get_user_origin(victim, origin, 0)                         addItem(origin)         }                 return HAM_IGNORED     }     public removeEntity(ent)     {         if (pev_valid(ent))             engfunc(EngFunc_RemoveEntity, ent)     }     public addItem(origin[3])     {         new ent = fm_create_entity("info_target")         set_pev(ent, pev_classname, item_class_name)                 engfunc(EngFunc_SetModel,ent, g_models[random_num(0, sizeof g_models - 1)])         set_pev(ent,pev_mins,Float:{-10.0,-10.0,0.0})         set_pev(ent,pev_maxs,Float:{10.0,10.0,25.0})         set_pev(ent,pev_size,Float:{-10.0,-10.0,0.0,10.0,10.0,25.0})         engfunc(EngFunc_SetSize,ent,Float:{-10.0,-10.0,0.0},Float:{10.0,10.0,25.0})         set_pev(ent,pev_solid,SOLID_BBOX)         set_pev(ent,pev_movetype,MOVETYPE_FLY)                 new Float:fOrigin[3]         IVecFVec(origin, fOrigin)         set_pev(ent, pev_origin, fOrigin)                 set_pev(ent,pev_renderfx,kRenderFxGlowShell)         switch(random_num(1,4))         {             case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})             case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})             case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})             case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})         }     }     public give_item(id)     {         new zombie         zombie = zp_get_user_zombie(id)                 new i = random_num(0, (zombie ? 5 : 13))         switch (i)         {             case 0:             {                 fm_set_user_health(id, get_user_health(id) + (zombie ? 750 : 75))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")             }             case 1:             {                 fm_set_user_health(id, get_user_health(id) - (zombie ? 500 : 50))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_DOWN")             }             case 2:             {                 fm_set_user_health(id, get_user_health(id) + (zombie ? 1000 : 50))                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_HEALTH_UP")             }             case 3:             {                 fm_set_user_gravity(id, 0.5)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_GRAVITY")             }             case 4:             {                 fm_set_user_armor(id, get_user_armor(id) + 200)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")             }             case 5:             {                 fm_set_user_armor(id, get_user_armor(id) + 110)                 ChatColor(id, "!g[KRIPT]!y %L", LANG_PLAYER, "ITEM_DM_ARMOR_UP")             }         }     }     public round_start()     {         new ent = FM_NULLENT         static string_class[] = "classname"         while ((ent = engfunc(EngFunc_FindEntityByString, ent, string_class, item_class_name)))             set_pev(ent, pev_flags, FL_KILLME)     }     // Stock: ChatColor!     stock ChatColor(const id, const input[], any:...)     {         new count = 1, players[32]         static msg[191]         vformat(msg, 190, input, 3)                 replace_all(msg, 190, "!g", "^4") // Green Color         replace_all(msg, 190, "!y", "^1") // Default Color         replace_all(msg, 190, "!team", "^3") // Team Color         replace_all(msg, 190, "!team2", "^0") // Team2 Color                 if (id) players[0] = id; else get_players(players, count, "ch")         {             for (new i = 0; i < count; i++)             {                 if (is_user_connected(players[i]))                 {                     message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])                     write_byte(players[i]);                     write_string(msg);                     message_end();                 }             }         }     }
Yes, i compile it but after i put him on server the model its not downloading and if someone's died he said to me the model it's not there.
Ykaru is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-30-2019 , 19:00   Re: I can't compile this
Reply With Quote #4

Is the file in the folder?

cstrike/models/basebuilder/CadouKript.mdl
__________________
Bugsy is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 12-02-2019 , 08:44   Re: I can't compile this
Reply With Quote #5

Here we go:
PHP Code:
/*
    Name: [ZP] Addon: Bonus Box
    Author: PomanoB & STRELOK
    Version 1.0

    Based on [ZP] DM Item's by PomanoB
    */

    #include <amxmodx>
    #include <amxmisc>
    #include <fakemeta>
    #include <fakemeta_util>
    #include <zombieplague>
    #include <hamsandwich>
    #include <colorchat>
    #define PLUGIN "[ZP] Addon: Bonus Box"
    #define VERSION "1.0"
    #define AUTHOR "PomanoB & Accelerator"

    #define OFFSET_FLASH_AMMO 387
    #define OFFSET_HE_AMMO 388
    #define OFFSET_SMOKE_AMMO 389

    
new const item_class_name[] = "dm_item"

    
new g_models[][] = {"models/basebuilder/CadouKript.mdl"}

    public 
plugin_precache()
    {
    
precache_model("models/basebuilder/CadouKript.mdl")    
    }

    public 
plugin_init()
    {
        
register_plugin(PLUGINVERSIONAUTHOR)
        
        
register_forward(FM_Touch"fwd_Touch")
        
        
register_event("HLTV""round_start""a""1=0""2=0")
        
        
RegisterHam(Ham_Killed"player""fw_PlayerKilled")
        
        
register_dictionary("bonus_box.txt")
    }

    public 
fwd_Touch(touchertouched)
    {
        if (!
is_user_alive(toucher) || !pev_valid(touched))
            return 
FMRES_IGNORED
        
        
new classname[32]    
        
pev(touchedpev_classnameclassname31)
        if (!
equal(classnameitem_class_name))
            return 
FMRES_IGNORED
        
        
        
        give_item
(toucher)
        
set_pev(touchedpev_effectsEF_NODRAW)
        
set_pev(touchedpev_solidSOLID_NOT)
        
        return 
FMRES_IGNORED
        
    
}

    public 
fw_PlayerKilled(victimattackershouldgib)
    {
        if (!
is_user_connected(attacker) || !is_user_connected(victim) || attacker == victim || !attacker)
            return 
HAM_IGNORED
        
        
        
new random random_num(08)
        
        if (
random == || random == || random == 6)
        {
            new 
origin[3]
            
get_user_origin(victimorigin0)
            
            
addItem(origin)
        }
        
        return 
HAM_IGNORED
    
}

    public 
removeEntity(ent)
    {
        if (
pev_valid(ent))
            
engfunc(EngFunc_RemoveEntityent)
    }

    public 
addItem(origin[3])
    {
        new 
ent fm_create_entity("info_target")
        
set_pev(entpev_classnameitem_class_name)
        
        
engfunc(EngFunc_SetModel,entg_models[random_num(0sizeof g_models 1)])

        
set_pev(ent,pev_mins,Float:{-10.0,-10.0,0.0})
        
set_pev(ent,pev_maxs,Float:{10.0,10.0,25.0})
        
set_pev(ent,pev_size,Float:{-10.0,-10.0,0.0,10.0,10.0,25.0})
        
engfunc(EngFunc_SetSize,ent,Float:{-10.0,-10.0,0.0},Float:{10.0,10.0,25.0})

        
set_pev(ent,pev_solid,SOLID_BBOX)
        
set_pev(ent,pev_movetype,MOVETYPE_FLY)
        
        new 
Float:fOrigin[3]
        
IVecFVec(originfOrigin)
        
set_pev(entpev_originfOrigin)
        
        
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
        switch(
random_num(1,4))
        {
            case 
1set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})
            case 
2set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
            case 
3set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})
            case 
4set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
        }
    }

    public 
give_item(id)
    {
        new 
zombie 
        zombie 
zp_get_user_zombie(id)
        
        new 
random_num(0, (zombie 13))
        switch (
i)
        {
            case 
0:
            {
                
fm_set_user_health(idget_user_health(id) + (zombie 750 75))
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_HEALTH_UP")
            }
            case 
1:
            {
                
fm_set_user_health(idget_user_health(id) - (zombie 500 50))
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_HEALTH_DOWN")
            }
            case 
2:
            {
                
fm_set_user_health(idget_user_health(id) + (zombie 1000 50))
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_HEALTH_UP")
            }
            case 
3:
            {
                
fm_set_user_gravity(id0.5)
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_GRAVITY")
            }
            case 
4:
            {
                
fm_set_user_armor(idget_user_armor(id) + 200)
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_ARMOR_UP")
            }
            case 
5:
            {
                
fm_set_user_armor(idget_user_armor(id) + 110)
                
ColorChat(idGREEN"^4[KRIPT]^1 %L"LANG_PLAYER"ITEM_DM_ARMOR_UP")
            }
        }
    }

    public 
round_start()
    {
        new 
ent FM_NULLENT
        
static string_class[] = "classname"
        
while ((ent engfunc(EngFunc_FindEntityByStringentstring_classitem_class_name))) 
            
set_pev(entpev_flagsFL_KILLME)
    } 
You will need in order to compile it.
PHP Code:
#include <colorchat> 

Last edited by Shadows Adi; 12-02-2019 at 08:47.
Shadows Adi 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 22:14.


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