Raised This Month: $51 Target: $400
 12% 

Suggestion / Subplugin Request [Req] Knife Model Admin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-26-2015 , 15:17   [Req] Knife Model Admin
Reply With Quote #1

Hello
I want To Know How to add p model knife for admin and thank's
__________________
Proud to be Morrocan
Chihab Eddine is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-26-2015 , 18:27   Re: [Req] Knife Model Admin
Reply With Quote #2

Mercylezz already made v_ model.
U can copy paste his code into p_
That simple.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-27-2015 , 10:15   Re: [Req] Knife Model Admin
Reply With Quote #3

but how ?
__________________
Proud to be Morrocan
Chihab Eddine is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-27-2015 , 11:27   Re: [Req] Knife Model Admin
Reply With Quote #4

Search for function replace_weapon_models(id, weaponid)
Code:
			else // Humans
			{
				// Admin knife models?
				if (get_pcvar_num(cvar_adminknifemodelshuman) && get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS])
				{
					set_pev(id, pev_viewmodel2, model_vknife_admin_human)
					set_pev(id, pev_weaponmodel2, model_pknife_admin_human)
				}
				else if (zp_get_jp(id))
				{
					set_pev(id, pev_viewmodel2, "models/v_egon.mdl")
					set_pev(id, pev_weaponmodel2, "models/p_egon.mdl")
				}
				else
				{
					set_pev(id, pev_viewmodel2, model_vknife_human)
					set_pev(id, pev_weaponmodel2, "models/p_knife.mdl")
				}
			}
Of course, you will need to precache the model first

Last edited by Chihuahuax; 11-27-2015 at 11:28.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-27-2015 , 15:30   Re: [Req] Knife Model Admin
Reply With Quote #5

I Will give you sma and do it for me please
__________________
Proud to be Morrocan

Last edited by Chihab Eddine; 11-27-2015 at 15:39.
Chihab Eddine is offline
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-28-2015 , 18:47   Re: [Req] Knife Model Admin
Reply With Quote #6

I Have do what you say but nothing
Quote:
// Admin knife models?
if (get_pcvar_num(cvar_adminknifemodelshuman) && get_user_flags(id) & g_access_flag[ACCESS_ADMIN_MODELS])
{
set_pev(id, pev_viewmodel2, model_vknife_admin_human)
set_pev(id, pev_weaponmodel2, "models/zombie_plague/p_knife_human_admin.mdl")
__________________
Proud to be Morrocan

Last edited by Chihab Eddine; 11-28-2015 at 18:48.
Chihab Eddine is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-29-2015 , 04:28   Re: [Req] Knife Model Admin
Reply With Quote #7

Quote:
Originally Posted by Chihab Eddine View Post
I Have do what you say but nothing
OMG lol that was just one part of many

Last edited by Chihuahuax; 11-29-2015 at 04:29.
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-29-2015 , 07:21   Re: [Req] Knife Model Admin
Reply With Quote #8

and what is the next step ?
__________________
Proud to be Morrocan
Chihab Eddine is offline
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-29-2015 , 08:04   Re: [Req] Knife Model Admin
Reply With Quote #9

Quote:
Originally Posted by Chihab Eddine View Post
I Will give you sma and do it for me please
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
Chihab Eddine
Member
Join Date: Aug 2014
Location: Morroco
Old 11-29-2015 , 08:28   Re: [Req] Knife Model Admin
Reply With Quote #10

zombie_plague_advance.sma
__________________
Proud to be Morrocan
Chihab Eddine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode