Approved [ZE] Owner Skin

Gameplay Addons
User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 624
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 48 times
Age: 19
Contact:

Re: [ZE] Owner Skin

#31

Post by Mohamed Alaa » 1 Month 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 web projects.
CS 1.6 hosting: powergamingtech.com

BandiT
Member
Member
Romania
Posts: 13
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

#32

Post by BandiT » 1 Week 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 ?

[ Post made via iPhone ]

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 216
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#33

Post by sPe3doN » 1 Week Ago

BandiT wrote:
1 Week 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

[ Post made via Android ]

BandiT
Member
Member
Romania
Posts: 13
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

#34

Post by BandiT » 1 Week Ago

Ok, i will try

[ Post made via iPhone ]

BandiT
Member
Member
Romania
Posts: 13
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

#35

Post by BandiT » 1 Week Ago

Is no working bro

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 216
Joined: 2 Years Ago
Has thanked: 14 times
Been thanked: 7 times
Age: 20
Contact:

#36

Post by sPe3doN » 6 Days Ago

BandiT wrote:
1 Week 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 }
*/

BandiT
Member
Member
Romania
Posts: 13
Joined: 1 Month Ago
Has thanked: 0
Been thanked: 0
Contact:

#37

Post by BandiT » 4 Days Ago

Thanks it’s working :)

[ Post made via iPhone ]

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests