Script allows using more colors than default [b]es_msg[/b] and [b]es_tell[/b]
New colors are:
[list][*]Red (#red)
[*]Blue (#blue)
[*]White (#white)[/list]
Of course scripts understand standard colors:
[list][*]Green (#green)
[*]Lightgreen (#lightgreen)
[*]Yellow (#default or #yellow)[/list]
If you want to use this in python scripts you must add this line to beginning of your script:
[code]from cmsg.cmsg import cmsg, ctell[/code]
[color=red][size=20][u][b]Commands:[/u][/b][/size][/color]
[color=red][size=18][b]cmsg[/b][/size][/color]
This command works like es_msg
[size=10][b]ESS[/b][/size]
[code]cmsg #redHello #yellowWorld[/code]
[size=10][b]ESP (Python)[/b][/size]
[code]cmsg("#redHello #yellowWorld")[/code]
[IMG]http://images.eventscripts.com/images/43738/cmsg/1038/cmsg2.jpg[/IMG]
[size=10][b]ESS[/b][/size]
[code]cmsg #greenHello #whiteWorld[/code]
[size=10][b]ESP (Python)[/b][/size]
[code]cmsg("#greenHello #whiteWorld")[/code]
[IMG]http://images.eventscripts.com/images/43738/cmsg/1039/cmsg3.jpg[/IMG]
To expand variables use:
[code]es cmsg[/code]
[size=10][b]ESS[/b][/size]
[code]es_set tmp1 "Expanded variable" ; es cmsg #redExpanded #green server_var(tmp1)[/code]
[IMG]http://images.eventscripts.com/images/43738/cmsg/1041/cmsg5.jpg[/IMG]
[color=red][size=18][b]ctell[/b][/size][/color]
This command works like es_tell
First argument may be USERID, player filter (#ct,#spec etc.) or list of USERIDs (Python only)
[size=10][b]ESS[/b][/size]
[code]ctell 2 #blueThis message #yellowis for user with USERID=#green2[/code]
[size=10][b]ESP (Python)[/b][/size]
[code]ctell(2, "#blueThis message #yellowis for user with USERID=#green2")[/code]
[IMG]http://images.eventscripts.com/images/43738/cmsg/1040/cmsg4.jpg[/IMG]
[size=10][b]ESS[/b][/size]
[code]ctell #ct #blueGood Morning Counter-terrorists[/code]
[size=10][b]ESP (Python)[/b][/size]
[code]ctell("#ct", "#blueGood Morning Counter-terrorists")[/code]
[size=10][b]ESP (Python)[/b][/size]
[code]ctell([2, 7, 10, 20], "#redYour USERID is #yellowLucky!")[/code]
[color=red][size=20][u][b]Limitations:[/u][/b][/size][/color]
There few limitations coming with this script, they are game-engine limitations and can be fixed only by Valve:
[list][*]You can use only one of the following colors at once: #red, #blue, #white, #lightgreen
[*]If you want to use #red there must be someone in Terrorists team, same is with #blue, there must be someone in Counter-terrorists team, otherwise they will be displayed as #white[/list]
Installation
[list][*]Download and unzip to [color=blue]cstrike/[/color]
[*]Add [i][color=grey]es_load cmsg[/color][/i] to [color=blue]cstrike/cfg/autoexec.cfg[/color]
[/list]
Version Notes For 2.0.3
Updated on: 2009-07-09 10:13:26 EST by maniek23 (View Zip Contents)
Bugfix