Approved [ZE] Owner Skin

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


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