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

Vip Model player


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-26-2019 , 17:46   Re: Vip Model player
Reply With Quote #11

Quote:
Originally Posted by redivcram View Post
Anywhere in your models folder. Make sure to add their paths to your code.

eg.
PHP Code:
new const SKIN_CT[] = "models/player/customvip/vip_ct.mdl" 
new const SKIN_T[] = "models/player/customvip/vip_t.mdl" 
Not true. They can't be outside the "player" folder and with a different name than the model itself. Also, this plugin doesn't require the full path - only the name as shown.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 05-26-2019 , 20:44   Re: Vip Model player
Reply With Quote #12

Quote:
Originally Posted by OciXCrom View Post
Not true. They can't be outside the "player" folder and with a different name than the model itself. Also, this plugin doesn't require the full path - only the name as shown.
Didn't pay attention to that.
redivcram is offline
jievylook
Senior Member
Join Date: Sep 2018
Old 06-22-2019 , 02:15   Re: Vip Model player
Reply With Quote #13

Quote:
Originally Posted by OciXCrom View Post
No, use this:

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

new const SKIN_FLAG ADMIN_RESERVATION
new const SKIN_CT[] = "CustomAdmCT"
new const SKIN_T[] = "CustomAdmT"

new bool:g_bHasCustomSkin[33]

public 
plugin_init()
{
    
register_plugin("Simple VIP Model""1.0""OciXCrom")
    
RegisterHam(Ham_Spawn"player""OnPlayerSpawn"1)
}

public 
plugin_precache()
{    
    
precache_player_model(SKIN_CT)
    
precache_player_model(SKIN_T)
}

public 
client_putinserver(id)
    
g_bHasCustomSkin[id] = false

public OnPlayerSpawn(id)
{
    if(
is_user_alive(id))
    {
        if(
get_user_flags(id) & SKIN_FLAG)
        {
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_CTset_model(idSKIN_CT)
                case 
CS_TEAM_Tset_model(idSKIN_T)
            }
        }
        else if(
g_bHasCustomSkin[id])
        {
            
g_bHasCustomSkin[id] = false
            cs_reset_user_model
(id)
        }
    }
}

set_model(const id, const szModel[])
{
    
cs_set_user_model(idszModel)
    
g_bHasCustomSkin[id] = true
}

stock precache_player_model(const name[], &id 0)
{
    new 
model[128]
    
formatex(modelcharsmax(model), "models/player/%s/%sT.mdl"namename)

    if(
file_exists(model))
        
id precache_generic(model)

    static const 
extension[] = "T.mdl"
    
#pragma unused extension

    
copy(model[strlen(model) - charsmax(extension)], charsmax(model), ".mdl")
    return 
precache_model(model)

This serves for zombie plague mode? Can I take the tt as a zombie?
jievylook is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 06-22-2019 , 07:01   Re: Vip Model player
Reply With Quote #14

Quote:
Originally Posted by jievylook View Post
This serves for zombie plague mode? Can I take the tt as a zombie?
No, you have to use zp_override_user_model. This is not the ZP section.
__________________

Last edited by edon1337; 06-22-2019 at 07:01.
edon1337 is offline
FLOY
Senior Member
Join Date: Dec 2013
Location: I love to www.steam.lv
Old 01-03-2021 , 15:33   Re: Vip Model player
Reply With Quote #15

Can edit skin only ct comand no teror this plugin for zombie mod
__________________
homepage:steam.lv
topsites:top.steam.lv
FLOY is offline
Send a message via Skype™ to FLOY
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 10:10.


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