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

[REQ] 3 Different Scripts


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrAzD
SourceMod Donor
Join Date: Jun 2007
Old 06-22-2007 , 10:47   [REQ] 3 Different Scripts
Reply With Quote #1

ok ive been looking for scripts that do JUST what i want and i have not found them yet.

[1] Maplist, a script that pulls from your maplist.txt and gives you a list of maps. The one that is out now makes a maplist from your maps folder, and i have a ton of maps in there that i dont use, so yeah..

[2] Admin ONLY list. like sm_who BUT it only shows the admins, not every player and if they have admin or not.

[3] sm_help, lists all the commands i use in console.


and this i just a question for anyone.. Can sourcemod change text color yet
CrAzD is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-22-2007 , 11:36   Re: [REQ] 3 Different Scripts
Reply With Quote #2

In chat lines it's possible to change the color, you just need to use the following, and this applies to CSS but some of these colors should work in most mods.

\x01 - default chat color
\x03 - default team color (css)
\x04 - dark green

so say i wanted to make my plugin, atac, output green for it's own name but default for everything else and display it to everyone.
Code:
for(new i = 1; i <= GetMaxClient(); ++i){      if(IsClientInGame(i)){           PrintToChat(i,"\x01\x04[ATAC]\x01 This is a message from my plugin");      } }
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
CrAzD
SourceMod Donor
Join Date: Jun 2007
Old 06-22-2007 , 12:33   Re: [REQ] 3 Different Scripts
Reply With Quote #3

sweet thx
CrAzD is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-22-2007 , 13:59   Re: [REQ] 3 Different Scripts
Reply With Quote #4

That will make [ATAC] (or should make it) red in DoD: Source.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
pRED*
Join Date: Dec 2006
Old 06-23-2007 , 03:34   Re: [REQ] 3 Different Scripts
Reply With Quote #5

I can't get this to work..

Code:
    new String:text[256];     Format(text,255,message);     ReplaceString(text, 255, "\\g", "\x04");     ReplaceString(text, 255, "\\t", "\x03");     ReplaceString(text, 255, "\\n", "\x01");         PrintToChatAll("(ALL) %s: %s", name, text);

If you add \g or something it just disappears but the colour is the same..
pRED* is offline
Knagg0
SourceMod Donor
Join Date: Dec 2005
Location: Germany
Old 06-23-2007 , 05:14   Re: [REQ] 3 Different Scripts
Reply With Quote #6

Add \x01 to the beginning of the message...
__________________

MFZB Gaming Community

[ www.mfzb.de ]

Knagg0 is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 06-23-2007 , 11:56   Re: [REQ] 3 Different Scripts
Reply With Quote #7

I actually usually do this

Code:
#define DEFAULTCOLOR 0x01 #define TEAMCOLOR 0x03 #define DARKGREEN 0x04 PrintToChatAll("%c%c[ATAC]%c This is a message",DEFAULTCOLOR,DARKGREEN,DEFAULTCOLOR");
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
CrAzD
SourceMod Donor
Join Date: Jun 2007
Old 06-23-2007 , 19:11   Re: [REQ] 3 Different Scripts
Reply With Quote #8

Quote:
Originally Posted by FlyingMongoose View Post
I actually usually do this

Code:
#define DEFAULTCOLOR 0x01 #define TEAMCOLOR 0x03 #define DARKGREEN 0x04 PrintToChatAll("%c%c[ATAC]%c This is a message",DEFAULTCOLOR,DARKGREEN,DEFAULTCOLOR");

yeah this works very well thx

ps i made the sm_help cmd myself..
CrAzD is offline
theY4Kman
Join Date: Jun 2007
Location: Yak
Old 06-24-2007 , 16:21   Re: [REQ] 3 Different Scripts
Reply With Quote #9

To get a list of maps from your maplist, just use the built-in command "maps *"
__________________
http://y4kstudios.com
Is that loud enough? Oh, while I have you, check out Viper.
theY4Kman is offline
Send a message via ICQ to theY4Kman Send a message via AIM to theY4Kman Send a message via MSN to theY4Kman Send a message via Yahoo to theY4Kman Send a message via Skype™ to theY4Kman
pRED*
Join Date: Dec 2006
Old 06-24-2007 , 16:27   Re: [REQ] 3 Different Scripts
Reply With Quote #10

This only shows your list not the servers mapcycle.
I think he wants an equivalent command to 1.6's 'listmaps'
pRED* 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 08:50.


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