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

How to set weapon skin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 05-03-2012 , 07:59   How to set weapon skin?
Reply With Quote #1

How to set skin for view model?
use pev_skin
v_knife.mdl

【set_pev(v_index, pev_skin, 1)】

Last edited by Leech_v2; 05-03-2012 at 08:55.
Leech_v2 is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-03-2012 , 08:42   Re: How to set weapon skin?
Reply With Quote #2

quick example:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Knifes skin"
#define VERSION "1.0"
#define AUTHOR "Bilal"

new knife[] = "models/v_knife.mdl"// put ur models name here.
new knife2[] = "models/p_knife.mdl"// put ur models name here.

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test""test")
}

public 
plugin_precache()
{
    
precache_model(knife)
    
precache_model(knife2)
}

public 
test(id)
{
    
set_pev(idpev_viewmodel2knife)
    
set_pev(idpev_weaponmodel2knife2)
    
client_print(idprint_chat"You succesfully switched ur knife")

__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 05-03-2012 , 08:54   Re: How to set weapon skin?
Reply With Quote #3

Quote:
Originally Posted by Bilal Pro View Post
quick example:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Knifes skin"
#define VERSION "1.0"
#define AUTHOR "Bilal"

new knife[] = "models/v_knife.mdl"// put ur models name here.
new knife2[] = "models/p_knife.mdl"// put ur models name here.

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test""test")
}

public 
plugin_precache()
{
    
precache_model(knife)
    
precache_model(knife2)
}

public 
test(id)
{
    
set_pev(idpev_viewmodel2knife)
    
set_pev(idpev_weaponmodel2knife2)
    
client_print(idprint_chat"You succesfully switched ur knife")

how to use set_pev(???, pev_skin, 1/0)
Leech_v2 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-03-2012 , 08:55   Re: How to set weapon skin?
Reply With Quote #4

Quote:
Originally Posted by Bilal Pro View Post
quick example:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Knifes skin"
#define VERSION "1.0"
#define AUTHOR "Bilal"

new knife[] = "models/v_knife.mdl"// put ur models name here.
new knife2[] = "models/p_knife.mdl"// put ur models name here.

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test""test")
}

public 
plugin_precache()
{
    
precache_model(knife)
    
precache_model(knife2)
}

public 
test(id)
{
    
set_pev(idpev_viewmodel2knife)
    
set_pev(idpev_weaponmodel2knife2)
    
client_print(idprint_chat"You succesfully switched ur knife")

he means the skin not a model.
there are inside of the model skins and submodels/bodyparts.

Well, actually i would like to know too.
.Dare Devil. is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-03-2012 , 08:57   Re: How to set weapon skin?
Reply With Quote #5

PHP Code:
set_pev(indexvalueanny
And also Dare devil Im sorry if he didnt ment this but now he also knows how to change weapon skins
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-03-2012 at 08:57.
Bilal Pro is offline
Leech_v2
Senior Member
Join Date: Mar 2011
Location: Chinese GuangDong
Old 05-03-2012 , 17:47   Re: How to set weapon skin?
Reply With Quote #6

Quote:
Originally Posted by Bilal Pro View Post
PHP Code:
set_pev(indexvalueanny
And also Dare devil Im sorry if he didnt ment this but now he also knows how to change weapon skins
how to get index form view model?
Leech_v2 is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-03-2012 , 18:43   Re: How to set weapon skin?
Reply With Quote #7

What do you mean?, index is a.k.a id / iplayer
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-04-2012 , 00:04   Re: How to set weapon skin?
Reply With Quote #8

Quote:
Originally Posted by Bilal Pro View Post
What do you mean?, index is a.k.a id / iplayer
you see the example the v_ak47.mdl is actually entity with model and ofcourse with id.


in game there are id 1-32 = player 33-3072(even mayby a more) = entities and ohter stuff.
but this view model entity id is in client side game, so it is very hard to get it.
I am sure there are trick to get this id.
.Dare Devil. is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-04-2012 , 01:20   Re: How to set weapon skin?
Reply With Quote #9

Quote:
Originally Posted by .Dare Devil. View Post
33-3072(even mayby a more) = entities and ohter stuff.
In Half-Life 1 games, entities count could be maximum 600.

pm_defs.h
PHP Code:
#define    MAX_PHYSENTS 600           // Must have room for all entities in the world.
#define MAX_MOVEENTS 64 
__________________

Last edited by claudiuhks; 05-04-2012 at 01:21.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply


Thread Tools
Display Modes

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 01:12.


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