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

[CSGO] Same CT skin every map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 08-03-2015 , 14:06   [CSGO] Same CT skin every map
Reply With Quote #1

I want to set so every map has the same default skin for Counter Terrorists, rather than random or what the map has built in.
Nolongerinthegame is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 08-03-2015 , 15:27   Re: [CSGO] Same CT skin every map
Reply With Quote #2

Have you try Sm_Skinchooser ?

fck, try this if you like.
This simply change all CT's to one same swat model.
PHP Code:
#include <cstrike>

public OnPluginStart()
{
    
HookEvent("player_spawn"player_spawn);
}

public 
player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));

    if(
GetClientTeam(client) == CS_TEAM_CT)
    {
        
SetEntProp(clientProp_Send"m_nModelIndex"PrecacheModel("models/player/ctm_swat.mdl"));
        
PrecacheModel("models/weapons/ct_arms_swat.mdl");
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/ct_arms_swat.mdl");
    }

__________________
Do not Private Message @me
Bacardi is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 08-07-2015 , 19:12   Re: [CSGO] Same CT skin every map
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
Have you try Sm_Skinchooser ?

fck, try this if you like.
This simply change all CT's to one same swat model.
PHP Code:
#include <cstrike>

public OnPluginStart()
{
    
HookEvent("player_spawn"player_spawn);
}

public 
player_spawn(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
client GetClientOfUserId(GetEventInt(event"userid"));

    if(
GetClientTeam(client) == CS_TEAM_CT)
    {
        
SetEntProp(clientProp_Send"m_nModelIndex"PrecacheModel("models/player/ctm_swat.mdl"));
        
PrecacheModel("models/weapons/ct_arms_swat.mdl");
        
SetEntPropString(clientProp_Send"m_szArmsModel""models/weapons/ct_arms_swat.mdl");
    }

Can u make one for both T and CT? :p
Ejziponken 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 14:23.


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