What's wrong with it?
Anyway, we won't do anything with plugins/extra items on the site before we finish the mod's update.
We have added new natives & more stuff.
Wait for it.
What's wrong with it?
nothing wrong with it.... just an extra out side external code for 1 modelJack GamePlay wrote: ↑5 years agoWhat's wrong with it?
Anyway, we won't do anything with plugins/extra items on the site before we finish the mod's update.
We have added new natives & more stuff.
Wait for it.
Like me but you can use this its work in my server
He who fails to plan is planning to fail
Code: Select all
#include <zombie_escape>
// Setting file
new const ZE_SETTING_RESOURCES[] = "zombie_escape.ini"
#define ADMIN_MODELS_ACCESS ADMIN_RCON
// Default models
new const szAdminHumanModel[][] =
{
"human_owner"
}
// Dynamic Arrays: Models
new Array:g_szAdminHumanModel
public plugin_init()
{
register_plugin("[ZE] Owner Skin", ZE_VERSION, AUTHORS)
}
public plugin_precache()
{
// Initialize arrays
g_szAdminHumanModel = ArrayCreate(32, 1)
// Load from external file
amx_load_setting_string_arr(ZE_SETTING_RESOURCES, "Player Models", "HUMAN OWNER", g_szAdminHumanModel)
// Load our default Values
new iIndex
if(ArraySize(g_szAdminHumanModel) == 0)
{
for(iIndex = 0; iIndex < charsmax(szAdminHumanModel); iIndex++)
ArrayPushString(g_szAdminHumanModel, szAdminHumanModel[iIndex])
// Save to external file
amx_save_setting_string_arr(ZE_SETTING_RESOURCES, "Player Models", "HUMAN OWNER", g_szAdminHumanModel)
}
// Precache
new szPlayerModel[32], szModelPath[128]
for (iIndex = 0; iIndex < ArraySize(g_szAdminHumanModel); iIndex++)
{
ArrayGetString(g_szAdminHumanModel, iIndex, szPlayerModel, charsmax(szPlayerModel))
formatex(szModelPath, charsmax(szModelPath), "models/player/%s/%s.mdl", szPlayerModel, szPlayerModel)
precache_model(szModelPath)
}
}
public ze_user_humanized(id)
{
if(!(get_user_flags(id) & ADMIN_MODELS_ACCESS))
return
new szPlayerModel[32]
// Set owner model
ArrayGetString(g_szAdminHumanModel, random_num(0, ArraySize(g_szAdminHumanModel) - 1), szPlayerModel, charsmax(szPlayerModel))
rg_set_user_model(id, szPlayerModel)
}
He who fails to plan is planning to fail
He who fails to plan is planning to fail
ADMIN_RCON // flag "l"
Code: Select all
#define ADMIN_ALL 0 /* everyone */
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK (1<<2) /* flag "c" */
#define ADMIN_BAN (1<<3) /* flag "d" */
#define ADMIN_SLAY (1<<4) /* flag "e" */
#define ADMIN_MAP (1<<5) /* flag "f" */
#define ADMIN_CVAR (1<<6) /* flag "g" */
#define ADMIN_CFG (1<<7) /* flag "h" */
#define ADMIN_CHAT (1<<8) /* flag "i" */
#define ADMIN_VOTE (1<<9) /* flag "j" */
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
#define ADMIN_RCON (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G (1<<18) /* flag "s" */
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
#define ADMIN_MENU (1<<20) /* flag "u" */
#define ADMIN_ADMIN (1<<24) /* flag "y" */
#define ADMIN_USER (1<<25) /* flag "z" */
Code: Select all
Invalid index 0 (count: 0)
[AMXX] Displaying debug trace (plugin "amx_settings_api.amxx", version "unknown")
[AMXX] Run time error 10: native error (native "ArrayGetString")
[AMXX] [0] amx_settings_api.sma::native_save_setting_string_arr (line 346)
Unhandled dynamic native error
[AMXX] Displaying debug trace (plugin "ze_owner_skin.amxx", version "unknown")
[AMXX] Run time error 10: native error (native "amx_save_setting_string_arr")
[AMXX] [0] ze_owner_skin.sma::plugin_precache (line 39)
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Users browsing this forum: Bing [Bot] and 0 guests