Raised This Month: $ Target: $400
 0% 

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 , 08:54   Re: How to set weapon skin?
Reply With Quote #1

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
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 00:25.


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