Resolved [Solved] Change Knife Model For Owner

Coding Help/Re-API Supported
Post Reply
User avatar
Muhammet20
Senior Member
Senior Member
Turkey
Posts: 103
Joined: 8 Months Ago
Has thanked: 10 times
Been thanked: 1 time
Contact:

[Solved] Change Knife Model For Owner

#1

Post by Muhammet20 » 4 Months 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 on 01 Jan 2019, 10:46, edited 1 time in total.
Don't Say This Is Impossible , Because Nothing Impossible.

User avatar
sPe3doN
Senior Member
Senior Member
Algeria
Posts: 164
Joined: 2 Years Ago
Has thanked: 15 times
Been thanked: 3 times
Age: 19
Contact:

#2

Post by sPe3doN » 4 Months 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

}

User avatar
Muhammet20
Senior Member
Senior Member
Turkey
Posts: 103
Joined: 8 Months Ago
Has thanked: 10 times
Been thanked: 1 time
Contact:

#3

Post by Muhammet20 » 4 Months Ago

sPe3doN wrote:
4 Months 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
Don't Say This Is Impossible , Because Nothing Impossible.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests