Approved [ZE] Owner Skin

Gameplay Addons
User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

[ZE] Owner Skin

#1

Post by Spir0x » 1 Year Ago

ZE Owner Skin

Description:
  • New simple plugin for only for Owners, this plugin will will give special model for anyone who have flag "l" // ADMIN_RCON & available only for human. Enjoy !! :)
Installation & Instructions:
  • Simply install it like any plugin and Don't forget to put your own model..
Screenshots:
  • Image
Downloads:
Last edited by Spir0x on 26 Nov 2018, 23:20, edited 2 times in total.
I trynna make money, not friends.

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 1 Year Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#2

Post by Rain1153 » 1 Year Ago

i saw the code does it work alternately? if the owner gets infected,will he get the same skin( the owner skin) or he'll be changed to a vip/random zombie in the server?
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#3

Post by Spir0x » 1 Year Ago

Bro read clearly. & available only for human. Enjoy !! :) this plugin give special skin only for human owner. i can make for zombies but i see it useless as the server have 2 default zombies models & special one for vips so owner will have vip skin zombie too.
I trynna make money, not friends.

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 1 Year Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#4

Post by Rain1153 » 1 Year Ago

yeah no worries i will modify it according to my needs...btw good plugin mate
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#5

Post by Spir0x » 1 Year Ago

okey, have fun bro !
I trynna make money, not friends.

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 1 Year Ago
Has thanked: 2 times
Been thanked: 1 time
Age: 19
Contact:

#6

Post by Rain1153 » 1 Year Ago

did you test this?
LOL

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#7

Post by Spir0x » 1 Year Ago

ofc. i'm using this one.
I trynna make money, not friends.

User avatar
Mohamed Alaa
Mod Developer
Mod Developer
Egypt
Posts: 626
Joined: 2 Years Ago
Location: Egypt
Has thanked: 34 times
Been thanked: 49 times
Age: 19
Contact:

#8

Post by Mohamed Alaa » 1 Year Ago

A clean code:

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(ze_is_user_zombie(id) || !is_user_alive(id) || !(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)
}
Want your own mod edition? PM me.
Accepting web projects.
CS 1.6 hosting: powergamingtech.com

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 633
Joined: 2 Years Ago
Location: Tunisia
Has thanked: 14 times
Been thanked: 7 times
Age: 19
Contact:

#9

Post by Spir0x » 1 Year Ago

Yes. more clean code.
I trynna make money, not friends.

johnnysins2000
Veteran Member
Veteran Member
Pakistan
Posts: 672
Joined: 2 Years Ago
Location: Lahore
Has thanked: 11 times
Been thanked: 10 times
Age: 22
Contact:

#10

Post by johnnysins2000 » 1 Year Ago

Jack GamePlay wrote:
1 Year Ago
A clean code:

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(ze_is_user_zombie(id) || !is_user_alive(id) || !(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)
}
jack u can do this in your special model sma ?
Nobody Is That Busy If They Make Time :roll:

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests