AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS:GO] Is it possible to force a players competitive color on server join? (https://forums.alliedmods.net/showthread.php?t=315625)

Dobby 04-15-2019 20:17

[CS:GO] Is it possible to force a players competitive color on server join?
 
My team has a scrim server, and it gets a bit confusing when we're sometimes given random colors when we join the server. (The competitive colors; orange, yellow, blue, green, purple).

I was wondering if there is a script that would force a players color when they join based on their steam ID. I've looked everywhere and searched the API Reference, but I can't find anything.,

B3none 04-22-2019 05:15

Re: [CS:GO] Is it possible to force a players competitive color on server join?
 
That'd be a fun plugin to write, look for what offset defines the clients icon colour.

B3none 04-22-2019 06:59

Re: [CS:GO] Is it possible to force a players competitive color on server join?
 
Looks like the offset used to set the clients colour is "m_iCompTeammateColor"

I've started work on this plugin:
https://github.com/b3none/compcolour.../compcolour.sp

It'd be nice if you could reach out to me on Discord: B3none #0575 so we can test the plugin and get it how you want it.

B3none 04-24-2019 18:36

Re: [CS:GO] Is it possible to force a players competitive color on server join?
 
It works! :)

https://github.com/b3none/compcolour.../compcolour.sp

Indarello 08-07-2019 03:59

Re: [CS:GO] Is it possible to force a players competitive color on server join?
 
Possible to make it work for casual gamemode?


All times are GMT -4. The time now is 13:11.

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