Solved [Solved] Change Knife Model For Owner

Coding Help/Re-API Supported
Post Reply
Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

[Solved] Change Knife Model For Owner

#1

Post by Muhammet20 » 5 years ago

Hello Guys,
Before Type Anything , Read Full And Carefully

I Want Change The Knife Skin For The Zombie Owner
I Want The Claw Model Be This :

Code: Select all

"models/zombie_escape/v_knife_heavy_zombi.mdl"
I Trying But Not Working , Here Is The Code

Code:
_______


Code: Select all

#include <amxmodx>

#include <amxmisc>

#include <cstrike>

#include <VIPsystem>

#include <zombie_escape>



#define Admin1 VIP_FLAG_A

#define Admin2 VIP_FLAG_B

#define Admin3 VIP_FLAG_C

#define Admin4 VIP_FLAG_E

#define Admin5 VIP_FLAG_F





public plugin_init() {

	

	register_plugin("AMX VIP Model", "1.1.1", "nylemustafa")

}



public plugin_precache() {

	precache_model("models/player/Kaya-Human-Owner/Kaya-Human-Owner.mdl")

	precache_model("models/player/Kaya-Halo-Head/Kaya-Halo-Head.mdl")

	precache_model("models/player/Kaya-Admin/Kaya-Admin.mdl")

	precache_model("models/zombie_escape/v_knife_heavy_zombi.mdl")



}



public ze_user_humanized(id) 

{

	if (VSGetVipFlag(id, Admin1))

	{

	if(cs_get_user_team(id) == CS_TEAM_CT || !is_user_alive(id))

	{

			cs_set_user_model(id, "Kaya-Human-Owner")

	}

	}

	if (VSGetVipFlag(id, Admin2)) 

	{

              

	}

	if (VSGetVipFlag(id, Admin3)) 

	{

                

			cs_set_user_model(id, "Kaya-Halo-Head")

	

	}

	if (VSGetVipFlag(id, Admin4))

	{

		

			cs_set_user_model(id,"Kaya-Admin")

	}

	return PLUGIN_CONTINUE

}

public ze_user_infected(iVictim, iInfector)

{

	if (VSGetVipFlag(iVictim, Admin1))

	{

		if(cs_get_user_team(iVictim) == CS_TEAM_T || !is_user_alive(iVictim))

		{

		cs_set_user_model(iVictim, "Kaya-Zombie-Owner")

		// Please Change The Model Here	

		}

	}

	return PLUGIN_CONTINUE

}

Put The Change Knife Model Under This Code

Code: Select all

cs_set_user_model(iVictim, "Kaya-Zombie-Owner")
the mod by me , and the special_models plugin not working on my zombie escape plugin version , my plugin version is 2.2
Last edited by Muhammet20 5 years ago, edited 1 time in total.

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

#2

Post by sPe3doN » 5 years ago

try:

Code: Select all

#include <amxmodx>

#include <amxmisc>

#include <cstrike>

#include <ze_vip>

#include <zombie_escape>



#define Admin1 VIP_FLAG_A

#define Admin2 VIP_FLAG_B

#define Admin3 VIP_FLAG_C

#define Admin4 VIP_FLAG_E

#define Admin5 VIP_FLAG_F





public plugin_init() {

	

	register_plugin("AMX VIP Model", "1.1.1", "nylemustafa")

}



public plugin_precache() {

	precache_model("models/player/Kaya-Human-Owner/Kaya-Human-Owner.mdl")

	precache_model("models/player/Kaya-Halo-Head/Kaya-Halo-Head.mdl")

	precache_model("models/player/Kaya-Admin/Kaya-Admin.mdl")

	precache_model("models/zombie_escape/v_knife_heavy_zombi.mdl")

	precache_model("models/zombie_escape/Kaya-Zombie-Owner.mdl")

	{

		

			cs_set_user_model(id,"Kaya-Admin")

	}.mdl")



}



public ze_user_humanized(id) 

{

	if (VSGetVipFlag(id, Admin1))

	{

	if(cs_get_user_team(id) == CS_TEAM_CT || !is_user_alive(id))

	{

			cs_set_user_model(id, "Kaya-Human-Owner")

	}

	}

	if (VSGetVipFlag(id, Admin2)) 

	{

              

	}

	if (VSGetVipFlag(id, Admin3)) 

	{

                

			cs_set_user_model(id, "Kaya-Halo-Head")

	

	}

	if (VSGetVipFlag(id, Admin4))

	{

		

			cs_set_user_model(id,"Kaya-Admin")

	}

	return PLUGIN_CONTINUE

}

public ze_user_infected(iVictim, iInfector)

{

	if (VSGetVipFlag(id, Admin1))

	{

		

			cs_set_user_model(id,"Kaya-Zombie-Owner")

		// Please Change The Model Here	

		}

	}

	return PLUGIN_CONTINUE

}
Image

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#3

Post by Muhammet20 » 5 years ago

sPe3doN wrote: 5 years ago try:

Code: Select all

#include <amxmodx>

#include <amxmisc>

#include <cstrike>

#include <ze_vip>

#include <zombie_escape>



#define Admin1 VIP_FLAG_A

#define Admin2 VIP_FLAG_B

#define Admin3 VIP_FLAG_C

#define Admin4 VIP_FLAG_E

#define Admin5 VIP_FLAG_F





public plugin_init() {

	

	register_plugin("AMX VIP Model", "1.1.1", "nylemustafa")

}



public plugin_precache() {

	precache_model("models/player/Kaya-Human-Owner/Kaya-Human-Owner.mdl")

	precache_model("models/player/Kaya-Halo-Head/Kaya-Halo-Head.mdl")

	precache_model("models/player/Kaya-Admin/Kaya-Admin.mdl")

	precache_model("models/zombie_escape/v_knife_heavy_zombi.mdl")

	precache_model("models/zombie_escape/Kaya-Zombie-Owner.mdl")

	{

		

			cs_set_user_model(id,"Kaya-Admin")

	}.mdl")



}



public ze_user_humanized(id) 

{

	if (VSGetVipFlag(id, Admin1))

	{

	if(cs_get_user_team(id) == CS_TEAM_CT || !is_user_alive(id))

	{

			cs_set_user_model(id, "Kaya-Human-Owner")

	}

	}

	if (VSGetVipFlag(id, Admin2)) 

	{

              

	}

	if (VSGetVipFlag(id, Admin3)) 

	{

                

			cs_set_user_model(id, "Kaya-Halo-Head")

	

	}

	if (VSGetVipFlag(id, Admin4))

	{

		

			cs_set_user_model(id,"Kaya-Admin")

	}

	return PLUGIN_CONTINUE

}

public ze_user_infected(iVictim, iInfector)

{

	if (VSGetVipFlag(id, Admin1))

	{

		

			cs_set_user_model(id,"Kaya-Zombie-Owner")

		// Please Change The Model Here	

		}

	}

	return PLUGIN_CONTINUE

}
no no , i forgot to delete this topic
because i fixed my problem , but with my self :D
but thanks for you to try help me......bye bye

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 7 guests