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

[CS:GO] Surf Colored Models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rufat845
New Member
Join Date: Jun 2019
Old 06-10-2019 , 14:26   [CS:GO] Surf Colored Models
Reply With Quote #1

I need plugin for colored models in CS:GO.
Server Surf(FFA),Red player models.
Like Evil Combat Surf and Surfing With Heart Combat surf servers
rufat845 is offline
ffg4m3r
Junior Member
Join Date: Mar 2020
Old 12-23-2020 , 14:05   Re: [CS:GO] Surf Colored Models
Reply With Quote #2

i need this too xd

Alwaez#9612
ffg4m3r is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 12-25-2020 , 13:49   Re: [CS:GO] Surf Colored Models
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=202839
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 is offline
ffg4m3r
Junior Member
Join Date: Mar 2020
Old 12-28-2020 , 10:09   Re: [CS:GO] Surf Colored Models
Reply With Quote #4

im using this but what i need is a model red for ct and t, a light red
ffg4m3r is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 12-28-2020 , 12:29   Re: [CS:GO] Surf Colored Models
Reply With Quote #5

Put this in your server.cfg or the cfg/sourcemod/plugin.team_colours.cfg and you should see the color changes.

PHP Code:
// Colors for CT
sm_Red      "255"
sm_Green    "0"
sm_Blue     "0"
sm_Alpha    "1"

// Colors for T
sm_RedT     "255"
sm_GreenT   "128"
sm_BlueT    "128"
sm_AlphaT   "1" 
Also I updated the original source for you. You can compile it using the Sourcemod Compiler.

PHP Code:
#include <sourcemod>
#include <cstrike>

#define PLUGIN_VERSION "1.01(Updated)"

#pragma semicolon 1
#pragma newdecls required

Handle h_Red INVALID_HANDLE;
Handle h_Green INVALID_HANDLE;
Handle h_Blue INVALID_HANDLE;
Handle h_Alpha INVALID_HANDLE;
Handle h_RedT INVALID_HANDLE;
Handle h_GreenT INVALID_HANDLE;
Handle h_BlueT INVALID_HANDLE;
Handle h_AlphaT INVALID_HANDLE;

public 
Plugin myinfo =
{
    
name "Team_Colors",
    
author "ShadowDragon",
    
description "Change Team Colors",
    
version "PLUGIN_VERSION",
    
url "digital-laser.net"
};

public 
void OnPluginStart() {
    
h_Red CreateConVar("sm_Red""255""255 = strong 0 = non");
    
h_Green CreateConVar("sm_Green""255""255 = strong 0 = non");
    
h_Blue CreateConVar("sm_Blue""255""255 = strong 0 = non");
    
h_Alpha CreateConVar("sm_Alpha""1""255 = strong 0 = non");
    
h_RedT CreateConVar("sm_RedT""255""255 = strong 0 = non");
    
h_GreenT CreateConVar("sm_GreenT""128""255 = strong 0 = non");
    
h_BlueT CreateConVar("sm_BlueT""128""255 = strong 0 = non");
    
h_AlphaT CreateConVar("sm_AlphaT""1""255 = strong 0 = non");
    
AutoExecConfig(true"team_colors.cfg");
    
    
HookEvent("player_spawn"SpawnEvent);
}

public 
Action SpawnEvent(Handle event, const char[] namebool dontBroadcast) {
    
int client_id GetEventInt(event"userid");
    
int client GetClientOfUserId(client_id);

    if (
GetClientTeam(client) == CS_TEAM_CT)
    {        
        
int Red GetConVarInt(h_Red);
        
int Green GetConVarInt(h_Green);
        
int Blue GetConVarInt(h_Blue);
        
int Alpha GetConVarInt(h_Alpha);
        
SetEntityRenderColor(clientRedGreenBlueAlpha);    
    }
        
    if (
GetClientTeam(client) == CS_TEAM_T)
    {
        
int RedT GetConVarInt(h_RedT);
        
int GreenT GetConVarInt(h_GreenT);
        
int BlueT GetConVarInt(h_BlueT);
        
int AlphaT GetConVarInt(h_AlphaT);
        
SetEntityRenderColor(clientRedTGreenTBlueTAlphaT);    
    }

__________________
Feel Free to PM me about any questions, I'll do my best to help

Last edited by Mr.Freeman; 12-28-2020 at 12:40. Reason: Added updated .sp file
Mr.Freeman is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 03-11-2021 , 10:54   Re: [CS:GO] Surf Colored Models
Reply With Quote #6

Quote:
Originally Posted by Mr.Freeman View Post
Put this in your server.cfg or the cfg/sourcemod/plugin.team_colours.cfg and you should see the color changes.

PHP Code:
// Colors for CT
sm_Red      "255"
sm_Green    "0"
sm_Blue     "0"
sm_Alpha    "1"

// Colors for T
sm_RedT     "255"
sm_GreenT   "128"
sm_BlueT    "128"
sm_AlphaT   "1" 
Also I updated the original source for you. You can compile it using the Sourcemod Compiler.

PHP Code:
#include <sourcemod>
#include <cstrike>

#define PLUGIN_VERSION "1.01(Updated)"

#pragma semicolon 1
#pragma newdecls required

Handle h_Red INVALID_HANDLE;
Handle h_Green INVALID_HANDLE;
Handle h_Blue INVALID_HANDLE;
Handle h_Alpha INVALID_HANDLE;
Handle h_RedT INVALID_HANDLE;
Handle h_GreenT INVALID_HANDLE;
Handle h_BlueT INVALID_HANDLE;
Handle h_AlphaT INVALID_HANDLE;

public 
Plugin myinfo =
{
    
name "Team_Colors",
    
author "ShadowDragon",
    
description "Change Team Colors",
    
version "PLUGIN_VERSION",
    
url "digital-laser.net"
};

public 
void OnPluginStart() {
    
h_Red CreateConVar("sm_Red""255""255 = strong 0 = non");
    
h_Green CreateConVar("sm_Green""255""255 = strong 0 = non");
    
h_Blue CreateConVar("sm_Blue""255""255 = strong 0 = non");
    
h_Alpha CreateConVar("sm_Alpha""1""255 = strong 0 = non");
    
h_RedT CreateConVar("sm_RedT""255""255 = strong 0 = non");
    
h_GreenT CreateConVar("sm_GreenT""128""255 = strong 0 = non");
    
h_BlueT CreateConVar("sm_BlueT""128""255 = strong 0 = non");
    
h_AlphaT CreateConVar("sm_AlphaT""1""255 = strong 0 = non");
    
AutoExecConfig(true"team_colors.cfg");
    
    
HookEvent("player_spawn"SpawnEvent);
}

public 
Action SpawnEvent(Handle event, const char[] namebool dontBroadcast) {
    
int client_id GetEventInt(event"userid");
    
int client GetClientOfUserId(client_id);

    if (
GetClientTeam(client) == CS_TEAM_CT)
    {        
        
int Red GetConVarInt(h_Red);
        
int Green GetConVarInt(h_Green);
        
int Blue GetConVarInt(h_Blue);
        
int Alpha GetConVarInt(h_Alpha);
        
SetEntityRenderColor(clientRedGreenBlueAlpha);    
    }
        
    if (
GetClientTeam(client) == CS_TEAM_T)
    {
        
int RedT GetConVarInt(h_RedT);
        
int GreenT GetConVarInt(h_GreenT);
        
int BlueT GetConVarInt(h_BlueT);
        
int AlphaT GetConVarInt(h_AlphaT);
        
SetEntityRenderColor(clientRedTGreenTBlueTAlphaT);    
    }

should server have the plugin Spawn Protection on it, the team colors bring nothing because the plugin changes. Unfortunately deactivating the colors in the spawn protection also brings nothing, unfortunately have found no solution here and please change this "team_colors.cfg" to "team_colors" you have otherwise a cfg.cfg

Last edited by freak.exe_uLow; 03-11-2021 at 10:54.
freak.exe_uLow 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 23:00.


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