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

Help add model by steam id


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-27-2020 , 00:10   Re: Help add model by steam id
Reply With Quote #11

If you change a player model, everybody will see the new model. Try the plugin I posted. I'm quite sure there are others as well as other threads that request the same thing.
__________________
fysiks is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 07-07-2020 , 10:51   Re: Help add model by steam id
Reply With Quote #12

Quote:
Originally Posted by Napoleon_be View Post
Just modify the steam id's

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

#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new const szAuthids[][] =
{
    
"STEAM:0:00000000",
    
"STEAM:0:00000000"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn,"player","FnHamSpawn",)
}

public 
plugin_precache()
{
    
precache_model("models/player/ALILP-VIPT/ALILP-VIPT.mdl")
    
precache_model("models/player/ALILP-VIP/ALILP-VIP.mdl")
}

public 
FnHamSpawn(id)
{
    if(
is_user_alive(id))
    {
        new 
szAuthid[35];
        
get_user_authid(idszAuthidcharsmax(szAuthid));
        
        for(new 
isizeof(szAuthids); i++)
        {
            if(
equali(szAuthidszAuthids[i]))
            {
                if(
cs_get_user_team(id) == CS_TEAM_CT)
                {
                    
cs_set_user_model(id,"ALILP-VIP")
                }
                else
                {
                
cs_set_user_model(id,"ALILP-VIPT")
                }
            }
        }    
    }

NICE !!!!
__________________
rx1983 is offline
Send a message via MSN to rx1983
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:32.


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