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

Model By Flag for Zombie Escape Mod (problem) !


Post New Thread Reply   
 
Thread Tools Display Modes
oTm4n3
Member
Join Date: Jul 2021
Old 07-30-2021 , 06:31   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #11

please can you give me your .inc
oTm4n3 is offline
oTm4n3
Member
Join Date: Jul 2021
Old 07-30-2021 , 07:00   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #12

can you give me your includes please , bcouse ihave problem in complilation
oTm4n3 is offline
1M1e
Member
Join Date: Mar 2020
Old 07-30-2021 , 07:14   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #13

ofc you will have problem cuz this plugin for ze not for zp

just change what i said in my other post

change #include <zombie_escape>
to
what ever your include is

and change ze_is_user_zombie and ze_user_humanized and ze_user_infected

Last edited by 1M1e; 07-30-2021 at 07:16.
1M1e is offline
oTm4n3
Member
Join Date: Jul 2021
Old 07-30-2021 , 15:30   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #14

Quote:
Originally Posted by 1M1e View Post
ofc you will have problem cuz this plugin for ze not for zp

just change what i said in my other post

change #include <zombie_escape>
to
what ever your include is

and change ze_is_user_zombie and ze_user_humanized and ze_user_infected
Can You just found (ze_is_user_zombie and ze_user_humanized and ze_user_infected) For me please
This my Escape Base :
Attached Files
File Type: sma Get Plugin or Get Source (zombie_escape.sma - 92 views - 341.3 KB)
oTm4n3 is offline
1M1e
Member
Join Date: Mar 2020
Old 07-30-2021 , 18:38   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #15

this is the problem your file name zombie_escape but it actually zp

add these includes
PHP Code:
#include <reapi>
#include <cs_weap_models_api>
#include <zombieplague> 

find
PHP Code:
ze_user_humanized 
change it to

PHP Code:
zp_user_humanized_pre 
find
PHP Code:
ze_is_user_zombie 
and change it to
PHP Code:
zp_get_user_zombie 

find
PHP Code:
ze_user_infected 
change it to
PHP Code:
zp_user_infected_pre 

Last edited by 1M1e; 07-30-2021 at 19:00.
1M1e is offline
oTm4n3
Member
Join Date: Jul 2021
Old 07-30-2021 , 22:28   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #16

: fatal error 100: cannot read from file: "reapi_version"
oTm4n3 is offline
1M1e
Member
Join Date: Mar 2020
Old 07-31-2021 , 07:04   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #17

add #include <amxmodx>

and you don't have reapi_version.inc

Last edited by 1M1e; 07-31-2021 at 07:05.
1M1e is offline
oTm4n3
Member
Join Date: Jul 2021
Old 07-31-2021 , 13:02   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #18

Quote:
Originally Posted by 1M1e View Post
add #include <amxmodx>

and you don't have reapi_version.inc
PHP Code:
#include <amxmodx>
#include <reapi>
#include <cs_weap_models_api>
#include <zombieplague>  


// Defines
#define MODEL_MAX_LENGTH 64
#define PLAYERMODEL_MAX_LENGTH 32
#define ACCESS_MAX_LENGTH 32
new g_szAccess_player_vip_models[2] = "m"
new g_szAccess_admin_models[2] = "o"
new g_szAccess_jocker_models[2] = "n"
new g_szAccess_vip_models[2] = "s"
new g_szAccess_dorothy_models[2] = "p"
new g_szAccess_flora_models[2] = "q"
new g_szAccess_ChoiJiYoon_models[2] = "y"
new g_szAccess_deadpool_models[2] = "w"
new g_szAccess_assassincreed_models[2] = "v"


new const szDorothyModel[][] = 
{
    
"Dorothy_Dark_Knight"
}

new const 
szAssassinCreedModel[][] = 
{
    
"AssassinCreed"
}

new const 
szDeadPoolModel[][] = 
{
    
"DeadPool"
}

new const 
szChoiJiYoonModel[][] = 
{
    
"Choi_Ji_Yoon"
}

new const 
szFloraModel[][] = 
{
    
"Flora_Paladin"
}

new const 
szJokerModel[][] = 
{
    
"Joker"
}

new const 
szAgentSmithModel[][] = 
{
    
"agent_smith"
}

new const 
szVipHumanModel[][] = 
{
    
"human_vip"
}

new const 
szVipZombieModel[][] = 
{
    
"zombie_vip"
}

new const 
v_szVipZombieKnifeModel[][] = 
{
    
"models/StonerServerWeaponsModels/v_knife_zombie_vip.mdl"
}

// Dynamic Arrays: Models
new Array:g_szVipHumanModel, Array:g_szVipZombieModel, Array:g_v_szVipZombieKnifeModel, Array:g_szJokerModel, Array:g_szAgentSmithModel, Array:g_szDorothyModel, Array:g_szFloraModel,
Array:
g_szAssassinCreedModel, Array:g_szDeadPoolModel, Array:g_szChoiJiYoonModel

public plugin_init()
{
    
register_plugin("[ZE] Special Models"2.91M1e)
}

public 
plugin_precache()
{
    
// Initialize Arrays
    
g_szDorothyModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szFloraModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szAgentSmithModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szJokerModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szVipHumanModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szVipZombieModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_v_szVipZombieKnifeModel ArrayCreate(MODEL_MAX_LENGTH1)
    
g_szAssassinCreedModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szDeadPoolModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szChoiJiYoonModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
    
// Load our Default Values
    
new iIndex
    
    
if(ArraySize(g_szDorothyModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szDorothyModeliIndex++)
            
ArrayPushString(g_szDorothyModelszDorothyModel[iIndex])
        

    }
    
    if(
ArraySize(g_szAssassinCreedModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szAssassinCreedModeliIndex++)
            
ArrayPushString(g_szAssassinCreedModelszAssassinCreedModel[iIndex])
        

    }
    
    if(
ArraySize(g_szDeadPoolModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szDeadPoolModeliIndex++)
            
ArrayPushString(g_szDeadPoolModelszDeadPoolModel[iIndex])
        

    }
    
    if(
ArraySize(g_szChoiJiYoonModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szChoiJiYoonModeliIndex++)
            
ArrayPushString(g_szChoiJiYoonModelszChoiJiYoonModel[iIndex])
        

    }
    
    if(
ArraySize(g_szFloraModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szFloraModeliIndex++)
            
ArrayPushString(g_szFloraModelszFloraModel[iIndex])

    }
    
    if(
ArraySize(g_szAgentSmithModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szAgentSmithModeliIndex++)
            
ArrayPushString(g_szAgentSmithModelszAgentSmithModel[iIndex])
        

    }    

    if(
ArraySize(g_szJokerModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szJokerModeliIndex++)
            
ArrayPushString(g_szJokerModelszJokerModel[iIndex])
        

    }            
    
    if(
ArraySize(g_szVipHumanModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szVipHumanModeliIndex++)
            
ArrayPushString(g_szVipHumanModelszVipHumanModel[iIndex])
        

    }
    
    if(
ArraySize(g_szVipZombieModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szVipZombieModeliIndex++)
            
ArrayPushString(g_szVipZombieModelszVipZombieModel[iIndex])
        

    }
    
    if(
ArraySize(g_v_szVipZombieKnifeModel) == 0)
    {
        for(
iIndex 0iIndex sizeof v_szVipZombieKnifeModeliIndex++)
            
ArrayPushString(g_v_szVipZombieKnifeModelv_szVipZombieKnifeModel[iIndex])
        

    }
    
    

    
// Precache
    
new szPlayerModel[PLAYERMODEL_MAX_LENGTH], szModel[MODEL_MAX_LENGTH], szModelPath[128]
    
    for (
iIndex 0iIndex ArraySize(g_szDorothyModel); iIndex++)
    {
        
ArrayGetString(g_szDorothyModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szAssassinCreedModel); iIndex++)
    {
        
ArrayGetString(g_szAssassinCreedModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szDeadPoolModel); iIndex++)
    {
        
ArrayGetString(g_szDeadPoolModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szChoiJiYoonModel); iIndex++)
    {
        
ArrayGetString(g_szChoiJiYoonModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szFloraModel); iIndex++)
    {
        
ArrayGetString(g_szFloraModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }

    for (
iIndex 0iIndex ArraySize(g_szAgentSmithModel); iIndex++)
    {
        
ArrayGetString(g_szAgentSmithModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }    
    
    for (
iIndex 0iIndex ArraySize(g_szJokerModel); iIndex++)
    {
        
ArrayGetString(g_szJokerModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szVipHumanModel); iIndex++)
    {
        
ArrayGetString(g_szVipHumanModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szVipZombieModel); iIndex++)
    {
        
ArrayGetString(g_szVipZombieModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_v_szVipZombieKnifeModel); iIndex++)
    {
        
ArrayGetString(g_v_szVipZombieKnifeModeliIndexszModelcharsmax(szModel))
        
precache_model(szModel)
    }
}

public 
zp_user_humanized_pre(id)
{
    if(
zp_get_user_zombie(id) || !is_user_alive(id))
        return
        
    new 
szPlayerModel[PLAYERMODEL_MAX_LENGTH]



    if (
get_user_flags(id) & (read_flags(g_szAccess_dorothy_models)))
    {
        
ArrayGetString(g_szDorothyModelrandom_num(0ArraySize(g_szDorothyModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_flora_models)))
    {
        
ArrayGetString(g_szFloraModelrandom_num(0ArraySize(g_szFloraModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_assassincreed_models)))
    {
        
ArrayGetString(g_szAssassinCreedModelrandom_num(0ArraySize(g_szAssassinCreedModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_deadpool_models)))
    {
        
ArrayGetString(g_szDeadPoolModelrandom_num(0ArraySize(g_szDeadPoolModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_ChoiJiYoon_models)))
    {
        
ArrayGetString(g_szChoiJiYoonModelrandom_num(0ArraySize(g_szChoiJiYoonModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_admin_models)))
    {
        
ArrayGetString(g_szAgentSmithModelrandom_num(0ArraySize(g_szAgentSmithModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }    
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_jocker_models)))
    {
        
ArrayGetString(g_szJokerModelrandom_num(0ArraySize(g_szJokerModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_player_vip_models)))
    {
        
ArrayGetString(g_szVipHumanModelrandom_num(0ArraySize(g_szVipHumanModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
        
    }
}

public 
zp_user_infected_pre(iVictimiInfector)
{
    if(!
is_user_alive(iVictim))
        return
        
    
// Set Zombie Models
    
new szPlayerModel[PLAYERMODEL_MAX_LENGTH], szModel[MODEL_MAX_LENGTH]

    if (
get_user_flags(iVictim) & (read_flags(g_szAccess_vip_models)))
    {
        
// Set Zombie Vip Model
        
ArrayGetString(g_szVipZombieModelrandom_num(0ArraySize(g_szVipZombieModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(iVictimszPlayerModel)
        
        
// Set Vip Zombie Knife Model
        
ArrayGetString(g_v_szVipZombieKnifeModelrandom_num(0ArraySize(g_v_szVipZombieKnifeModel) - 1), szModelcharsmax(szModel))
        
cs_set_player_view_model(iVictimCSW_KNIFEszModel)
        
cs_set_player_weap_model(iVictimCSW_KNIFE""// Leave Blank so knife not appear with zombies
    

Bro you helping me much Thanks , But I still getting problems
HTML Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Argument type mismatch (argument 2) on line 78
Error: Undefined symbol "M1e" on line 78
Error: Expected token: "}", but found "-end of file-" on line 331

3 Errors.
Could not locate output file xvskins.amx (compile failed).
oTm4n3 is offline
1M1e
Member
Join Date: Mar 2020
Old 07-31-2021 , 14:01   Re: Model By Flag for Zombie Escape Mod (problem) !
Reply With Quote #19

PHP Code:
public plugin_init()
{
    
register_plugin("[ZE] Special Models"2.91M1e)

it should be with " "


and in public zp_user_infected_pre(iVictim, iInfector)

close the code with }

PHP Code:
#include <amxmodx>
#include <reapi>
#include <cs_weap_models_api>
#include <zombieplague>

// Defines
#define MODEL_MAX_LENGTH 64
#define PLAYERMODEL_MAX_LENGTH 32
#define ACCESS_MAX_LENGTH 32
new g_szAccess_player_vip_models[2] = "m"
new g_szAccess_admin_models[2] = "o"
new g_szAccess_jocker_models[2] = "n"
new g_szAccess_vip_models[2] = "s"
new g_szAccess_dorothy_models[2] = "p"
new g_szAccess_flora_models[2] = "q"
new g_szAccess_ChoiJiYoon_models[2] = "y"
new g_szAccess_deadpool_models[2] = "w"
new g_szAccess_assassincreed_models[2] = "v"


new const szDorothyModel[][] = 
{
    
"Dorothy_Dark_Knight"
}

new const 
szAssassinCreedModel[][] = 
{
    
"AssassinCreed"
}

new const 
szDeadPoolModel[][] = 
{
    
"DeadPool"
}

new const 
szChoiJiYoonModel[][] = 
{
    
"Choi_Ji_Yoon"
}

new const 
szFloraModel[][] = 
{
    
"Flora_Paladin"
}

new const 
szJokerModel[][] = 
{
    
"Joker"
}

new const 
szAgentSmithModel[][] = 
{
    
"agent_smith"
}

new const 
szVipHumanModel[][] = 
{
    
"human_vip"
}

new const 
szVipZombieModel[][] = 
{
    
"zombie_vip"
}

new const 
v_szVipZombieKnifeModel[][] = 
{
    
"models/StonerServerWeaponsModels/v_knife_zombie_vip.mdl"
}

// Dynamic Arrays: Models
new Array:g_szVipHumanModel, Array:g_szVipZombieModel, Array:g_v_szVipZombieKnifeModel, Array:g_szJokerModel, Array:g_szAgentSmithModel, Array:g_szDorothyModel, Array:g_szFloraModel,
Array:
g_szAssassinCreedModel, Array:g_szDeadPoolModel, Array:g_szChoiJiYoonModel

public plugin_init()
{
    
register_plugin("[ZE] Special Models""2.9""1M1e")
}

public 
plugin_precache()
{
    
// Initialize Arrays
    
g_szDorothyModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szFloraModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szAgentSmithModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szJokerModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szVipHumanModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szVipZombieModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_v_szVipZombieKnifeModel ArrayCreate(MODEL_MAX_LENGTH1)
    
g_szAssassinCreedModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szDeadPoolModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
g_szChoiJiYoonModel ArrayCreate(PLAYERMODEL_MAX_LENGTH1)
    
    
// Load our Default Values
    
new iIndex
    
    
if(ArraySize(g_szDorothyModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szDorothyModeliIndex++)
            
ArrayPushString(g_szDorothyModelszDorothyModel[iIndex])
        

    }
    
    if(
ArraySize(g_szAssassinCreedModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szAssassinCreedModeliIndex++)
            
ArrayPushString(g_szAssassinCreedModelszAssassinCreedModel[iIndex])
        

    }
    
    if(
ArraySize(g_szDeadPoolModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szDeadPoolModeliIndex++)
            
ArrayPushString(g_szDeadPoolModelszDeadPoolModel[iIndex])
        

    }
    
    if(
ArraySize(g_szChoiJiYoonModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szChoiJiYoonModeliIndex++)
            
ArrayPushString(g_szChoiJiYoonModelszChoiJiYoonModel[iIndex])
        

    }
    
    if(
ArraySize(g_szFloraModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szFloraModeliIndex++)
            
ArrayPushString(g_szFloraModelszFloraModel[iIndex])

    }
    
    if(
ArraySize(g_szAgentSmithModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szAgentSmithModeliIndex++)
            
ArrayPushString(g_szAgentSmithModelszAgentSmithModel[iIndex])
        

    }    

    if(
ArraySize(g_szJokerModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szJokerModeliIndex++)
            
ArrayPushString(g_szJokerModelszJokerModel[iIndex])
        

    }            
    
    if(
ArraySize(g_szVipHumanModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szVipHumanModeliIndex++)
            
ArrayPushString(g_szVipHumanModelszVipHumanModel[iIndex])
        

    }
    
    if(
ArraySize(g_szVipZombieModel) == 0)
    {
        for(
iIndex 0iIndex sizeof szVipZombieModeliIndex++)
            
ArrayPushString(g_szVipZombieModelszVipZombieModel[iIndex])
        

    }
    
    if(
ArraySize(g_v_szVipZombieKnifeModel) == 0)
    {
        for(
iIndex 0iIndex sizeof v_szVipZombieKnifeModeliIndex++)
            
ArrayPushString(g_v_szVipZombieKnifeModelv_szVipZombieKnifeModel[iIndex])
        

    }
    
    

    
// Precache
    
new szPlayerModel[PLAYERMODEL_MAX_LENGTH], szModel[MODEL_MAX_LENGTH], szModelPath[128]
    
    for (
iIndex 0iIndex ArraySize(g_szDorothyModel); iIndex++)
    {
        
ArrayGetString(g_szDorothyModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szAssassinCreedModel); iIndex++)
    {
        
ArrayGetString(g_szAssassinCreedModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szDeadPoolModel); iIndex++)
    {
        
ArrayGetString(g_szDeadPoolModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szChoiJiYoonModel); iIndex++)
    {
        
ArrayGetString(g_szChoiJiYoonModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szFloraModel); iIndex++)
    {
        
ArrayGetString(g_szFloraModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }

    for (
iIndex 0iIndex ArraySize(g_szAgentSmithModel); iIndex++)
    {
        
ArrayGetString(g_szAgentSmithModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }    
    
    for (
iIndex 0iIndex ArraySize(g_szJokerModel); iIndex++)
    {
        
ArrayGetString(g_szJokerModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szVipHumanModel); iIndex++)
    {
        
ArrayGetString(g_szVipHumanModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_szVipZombieModel); iIndex++)
    {
        
ArrayGetString(g_szVipZombieModeliIndexszPlayerModelcharsmax(szPlayerModel))
        
formatex(szModelPathcharsmax(szModelPath), "models/player/%s/%s.mdl"szPlayerModelszPlayerModel)
        
precache_model(szModelPath)
    }
    
    for (
iIndex 0iIndex ArraySize(g_v_szVipZombieKnifeModel); iIndex++)
    {
        
ArrayGetString(g_v_szVipZombieKnifeModeliIndexszModelcharsmax(szModel))
        
precache_model(szModel)
    }
}

public 
zp_user_humanized_pre(id)
{
    if(
zp_get_user_zombie(id) || !is_user_alive(id))
        return
        
    new 
szPlayerModel[PLAYERMODEL_MAX_LENGTH]



    if (
get_user_flags(id) & (read_flags(g_szAccess_dorothy_models)))
    {
        
ArrayGetString(g_szDorothyModelrandom_num(0ArraySize(g_szDorothyModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_flora_models)))
    {
        
ArrayGetString(g_szFloraModelrandom_num(0ArraySize(g_szFloraModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_assassincreed_models)))
    {
        
ArrayGetString(g_szAssassinCreedModelrandom_num(0ArraySize(g_szAssassinCreedModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_deadpool_models)))
    {
        
ArrayGetString(g_szDeadPoolModelrandom_num(0ArraySize(g_szDeadPoolModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_ChoiJiYoon_models)))
    {
        
ArrayGetString(g_szChoiJiYoonModelrandom_num(0ArraySize(g_szChoiJiYoonModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_admin_models)))
    {
        
ArrayGetString(g_szAgentSmithModelrandom_num(0ArraySize(g_szAgentSmithModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }    
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_jocker_models)))
    {
        
ArrayGetString(g_szJokerModelrandom_num(0ArraySize(g_szJokerModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
    }
    
    
    else if (
get_user_flags(id) & (read_flags(g_szAccess_player_vip_models)))
    {
        
ArrayGetString(g_szVipHumanModelrandom_num(0ArraySize(g_szVipHumanModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(idszPlayerModel)
        
    }
}

public 
zp_user_infected_pre(iVictimiInfector)
{
    if(!
is_user_alive(iVictim))
        return
        
    
// Set Zombie Models
    
new szPlayerModel[PLAYERMODEL_MAX_LENGTH], szModel[MODEL_MAX_LENGTH]

    if (
get_user_flags(iVictim) & (read_flags(g_szAccess_vip_models)))
    {
        
// Set Zombie Vip Model
        
ArrayGetString(g_szVipZombieModelrandom_num(0ArraySize(g_szVipZombieModel) - 1), szPlayerModelcharsmax(szPlayerModel))
        
rg_set_user_model(iVictimszPlayerModel)
        
        
// Set Vip Zombie Knife Model
        
ArrayGetString(g_v_szVipZombieKnifeModelrandom_num(0ArraySize(g_v_szVipZombieKnifeModel) - 1), szModelcharsmax(szModel))
        
cs_set_player_view_model(iVictimCSW_KNIFEszModel)
        
cs_set_player_weap_model(iVictimCSW_KNIFE""// Leave Blank so knife not appear with zombies
    
}


Last edited by 1M1e; 08-01-2021 at 02:04.
1M1e 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 18:59.


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