Approved [ZE] Owner Skin

Plug-ins compatibility with Zombie Escape 1.x only!


User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#21

Post by Raheem » 5 years ago

Spirox, update code as jack said and test it so it be approved.

Thanks.
He who fails to plan is planning to fail

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#22

Post by Spir0x » 5 years ago

rar file updated and working fine.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#23

Post by sPe3doN » 5 years ago

Spir0x wrote: 5 years ago
  • who have flag "g" // ADMIN_RCON
ADMIN_RCON // flag "l"
ADMIN_CVAR // flag "g"

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" */
Image

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#24

Post by Spir0x » 5 years ago

So Flag "l".

User avatar
tmv
Member
Member
Russia
Posts: 36
Joined: 4 years ago
Contact:

#25

Post by tmv » 4 years ago

Problem:

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)

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#26

Post by Raheem » 4 years ago

Post your zombie_escape.ini
He who fails to plan is planning to fail

User avatar
tmv
Member
Member
Russia
Posts: 36
Joined: 4 years ago
Contact:

#27

Post by tmv » 4 years ago

I fixed it thanks Raheem

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

#28

Post by z0h1r-LK » 4 years ago

you add model zombie owner in plugin bro
nice

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#29

Post by Spir0x » 4 years ago

thank you

snitch
Member
Member
Turkey
Posts: 24
Joined: 4 years ago
Contact:

#30

Post by snitch » 4 years ago

need help, what i have to write in ini if my model calling: blabla/blabla.mdl

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#31

Post by Night Fury » 4 years ago

Just write the model name.
So if it's blabla.mdl, just write blabla & make sure it's located in a folder named blabla as well.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#32

Post by BandiT » 4 years ago

Can someone to make this plugin to work for vip model, because inhave this plugin it’s working very weel i have skin for human and skin for zombie, but i want one like that for vip, to put another skin for vip human and zombie, can someone help me with that ?

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#33

Post by sPe3doN » 4 years ago

BandiT wrote: 4 years ago Can someone to make this plugin to work for vip model, because inhave this plugin it’s working very weel i have skin for human and skin for zombie, but i want one like that for vip, to put another skin for vip human and zombie, can someone help me with that ?
Just search in the code ADMIN_RECON And change it to ADMIN_LEVEL_H
Image

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#34

Post by BandiT » 4 years ago

Ok, i will try

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#35

Post by BandiT » 4 years ago

Is no working bro

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 258
Joined: 7 years ago
Contact:

#36

Post by sPe3doN » 4 years ago

BandiT wrote: 4 years ago Is no working bro
here you go

Code: Select all

#include <zombie_escape>

// Setting file
new const ZE_SETTING_RESOURCES[] = "zombie_escape.ini"

#define VIP_MODELS_ACCESS ADMIN_LEVEL_H

// Default models
new const szAdminHumanModel[][] = 
{
	"human_VIP"
}

// Dynamic Arrays: Models
new Array:g_szAdminHumanModel

public plugin_init()
{
	register_plugin("[ZE] VIP 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 VIP", 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 VIP", 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(ze_is_user_zombie(id) || !is_user_alive(id) || !(get_user_flags(id) & VIP_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)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1036\\ f0\\ fs16 \n\\ par }
*/
Image

BandiT
Member
Member
Romania
Posts: 59
Joined: 4 years ago
Contact:

#37

Post by BandiT » 4 years ago

Thanks it’s working :)

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#38

Post by Spir0x » 4 years ago

sorry i can't help, i just deleted my pack since 5 months ago and i forgot 90% of the zombie escape mod.

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

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

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests