Raised This Month: $60 Target: $400
 15% 

VIP weapons models


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-03-2012 , 06:36   Re: VIP weapons models
Reply With Quote #11

You are in the scripting section, meaning you are willing to code. If not, that's not the right section for you, ask in the request/suggestions section instead so.
__________________
Arkshine is offline
gump497
BANNED
Join Date: May 2011
Location: Slovakia
Old 07-03-2012 , 06:38   Re: VIP weapons models
Reply With Quote #12

Okay, so you can therefore lock.
gump497 is offline
Send a message via ICQ to gump497 Send a message via Skype™ to gump497
FLOY
Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 08-18-2019 , 08:15   Re: VIP weapons models
Reply With Quote #13

cand edit all code for knife skin only vip
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-20-2019 , 00:55   Re: VIP weapons models
Reply With Quote #14

here is the code of knife for vip plugin which is by Daminou & i have added ADMIN_LEVEL_H for this knife skin.

PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <cstrike> 

new const g_ModelKnifeCT[] = "models/vip/ct_knife.mdl" 
new const g_ModelKnifeTE[] = "models/vip/tr_knife.mdl" 

public plugin_init() 

    
register_plugin("VIP Knife models""1.1""Daminou"
     
    
register_event("CurWeapon""model_knife""b"


public 
plugin_precache()  
{  
    
precache_model(g_ModelKnifeCT)  
    
precache_model(g_ModelKnifeTE)  


public 
model_knife(id

    if(!
is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H))
    { 
        new 
clipammo 
        
new knife get_user_weapon(idclipammo
        if(
knife == CSW_KNIFE
        { 
            switch(
cs_get_user_team(id)) 
            { 
                case 
CS_TEAM_CT
                { 
                    
set_pev(idpev_viewmodel2g_ModelKnifeCT
                } 
                case 
CS_TEAM_T
                { 
                    
set_pev(idpev_viewmodel2g_ModelKnifeTE
                } 
            } 
        } 
    } 

2nd

stop bumping old thread
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Angel Of Games - Forum
Selling Zombie CSO 4.3 Money System Mod

Last edited by DON KHAN 1; 08-26-2019 at 00:43.
DON KHAN 1 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 08-22-2019 , 04:17   Re: VIP weapons models
Reply With Quote #15

Quote:
Originally Posted by DON KHAN 1 View Post
here is the code of knife for vip plugin which is by Daminou & i have added ADMIN_LEVEL_H for this knife skin.

PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <cstrike> 

new const g_ModelKnifeCT[] = "models/vip/ct_knife.mdl" 
new const g_ModelKnifeTE[] = "models/vip/tr_knife.mdl" 

public plugin_init() 

    
register_plugin("VIP Knife models""1.1""Daminou"
     
    
register_event("CurWeapon""model_knife""b"


public 
plugin_precache()  
{  
    
precache_model(g_ModelKnifeCT)  
    
precache_model(g_ModelKnifeTE)  


public 
model_knife(id

    if(
is_user_alive(id) && is_user_connected(id) & get_user_flags(id) & ADMIN_LEVEL_H
    { 
        new 
clipammo 
        
new knife get_user_weapon(idclipammo
        if(
knife == CSW_KNIFE
        { 
            switch(
cs_get_user_team(id)) 
            { 
                case 
CS_TEAM_CT
                { 
                    
set_pev(idpev_viewmodel2g_ModelKnifeCT
                } 
                case 
CS_TEAM_T
                { 
                    
set_pev(idpev_viewmodel2g_ModelKnifeTE
                } 
            } 
        } 
    } 

2nd

stop bumping old thread
3rd

Please use Ham_Item_Deploy or, better, please hook DefaultDeploy using Orpheu and check if models are matching knife ones replace them.
register_event is a bad way to do it considering that now you have such powerful tools.

Last edited by DarthMan; 08-22-2019 at 04:17.
DarthMan is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 08-26-2019 , 00:51   Re: VIP weapons models
Reply With Quote #16

Quote:
Originally Posted by DarthMan View Post
3rd

Please use Ham_Item_Deploy or, better, please hook DefaultDeploy using Orpheu and check if models are matching knife ones replace them.
register_event is a bad way to do it considering that now you have such powerful tools.
u are right and there was a one mistake more that i putted
PHP Code:
if(is_user_alive(id) && is_user_connected(id) & get_user_flags(id) & ADMIN_LEVEL_H
but that must be
PHP Code:
if(!is_user_alive(id) || !(get_user_flags(id) & ADMIN_LEVEL_H)) 
2nd : it is better using Weapon Model Replacement By GHW Chronic & can easily turn that plugin with access.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Angel Of Games - Forum
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 13:10   Re: VIP weapons models
Reply With Quote #17

Quote:
#include < amxmodx >


#define VipFlag ADMIN_LEVEL_H

public plugin_init( )
{
register_plugin( "Vip models" , "1.0" , "Aooka" );

register_event( "CurWeapon" , "Ev_CurWeapon" , "b" ),
}

public plugin_precache( )
// precache_model("models/player/vipmodel/Vip.mdl")
// precache_model("models/player/vipmodel/VipT.mdl")
// precache_model("models/player/vipmodel/Neo.mdl")

public Ev_CurWeapon( const id )
{
if( is_user_alive( id ) && get_user_flags( id ) & VipFlag )
{
// precache_model("models/player/vipmodel/Vip.mdl")
// precache_model("models/player/vipmodel/VipT.mdl")
// precache_model("models/player/vipmodel/Neo.mdl")
}
}
Like this
Pls i want say /vm and show VIP Models Menu
Neo
Urbana
BlackResident
Mohamed null is offline
Supremache
BANNED
Join Date: Sep 2019
Location: Egypt
Old 10-17-2020 , 14:05   Re: VIP weapons models
Reply With Quote #18

Quote:
Originally Posted by Mohamed null View Post
Like this
Pls i want say /vm and show VIP Models Menu
Neo
Urbana
BlackResident
Dont reply to old topic's 🙄
Try this one:
https://forums.alliedmods.net/showpo...78&postcount=8
Supremache is offline
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 23:36.


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