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

[TF2] ScrollingRules


Post New Thread Reply   
 
Thread Tools Display Modes
Zirconium
Member
Join Date: Jul 2011
Old 09-24-2011 , 15:41   Re: [TF2]ScrollingRules
Reply With Quote #21

Yep you'll have to put color tags yourself in your scrollingrules.phrases.txt and scrollingrulesdata.phrases.txt like in the example at the top of this topic.
__________________
Zirconium is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 04-20-2012 , 16:25   Re: [TF2]ScrollingRules
Reply With Quote #22

Hi there and thanks for this plugin. I installed colors.inc but i'm still not getting any colores. I also recompiled the plugin with those comments removed. This is my phrases file:

Quote:
"Rule03"
{
"en" "1){lightgreen}Speak English or get kicked"
}

"Rule04"
{
"en" "2) Don't talk if your balls haven't dropped"
}
"Rule05"
{
"en" "3){red}All classes are limited to 3 maximum"
}
"Rule06"
{
"en" "4) Playing music is allowed unless 2 or more people protest"
}
Also the rules don't seem to automatically show after a player joins. And what do you mean by 'how to' message?
__________________

Last edited by eraserhead; 04-20-2012 at 16:26.
eraserhead is offline
Send a message via Skype™ to eraserhead
Zirconium
Member
Join Date: Jul 2011
Old 05-03-2012 , 05:13   Re: [TF2]ScrollingRules
Reply With Quote #23

For the colors i don't know what's your problem at the moment, if you installed color.inc like explained HERE and recompiled this plugin with #define USECOLORS uncommented it should work.

About rules not showing up, this depends on the scrollingrules_interval setting, did you set it to a new value or not ?

The "how to" message is the message shown to the users to explain them what to type in to see the rules "on demand" it's a message like :
"type !rules in chat to view our rules"
__________________

Last edited by Zirconium; 05-21-2012 at 08:21.
Zirconium is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 05-21-2012 , 12:26   Re: [TF2]ScrollingRules
Reply With Quote #24

Hey Zirconium. When compiling the plugin i removed // from this line:
Quote:
//#define USECOLORS
But i still don't have colored text. colors.inc IS installed.

For testing purposes i've set this cvar like so:

Quote:
// Amount of seconds between each group of rules scrolling automaticaly in chat.
// -
// Default: "300"
scrollingrules_interval "30"
But i won't see the rules once i'm on the server every 30 seconds. It only works when i type !rules.

Also it would be useful to have a function that shows the rules as soon as someone joins a team?
__________________

Last edited by eraserhead; 05-21-2012 at 12:26.
eraserhead is offline
Send a message via Skype™ to eraserhead
Zirconium
Member
Join Date: Jul 2011
Old 11-22-2012 , 05:07   Re: [TF2]ScrollingRules
Reply With Quote #25

Sorry for so late answer but i was away and really busy for a while

I don't know why it doesn't work for you eraserhead , could it be an interaction with an other mod ?

Do you see some error messages in console ?

I see the messages showing up coloured each interval i've set.

I'll have a look on the rules showing up when player joins a team.
__________________

Last edited by Zirconium; 11-22-2012 at 06:31.
Zirconium is offline
Amazing_Horse
Member
Join Date: Mar 2013
Old 04-24-2013 , 10:59   Re: [TF2]ScrollingRules
Reply With Quote #26

could u maybe make that i have to accept rules to play or if i dont accept to be kicked?
Amazing_Horse is offline
kaytaro
Member
Join Date: May 2011
Old 05-25-2013 , 14:56   Re: [TF2]ScrollingRules
Reply With Quote #27

I'm getting this error

Code:
L 05/25/2013 - 13:12:28: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 05/25/2013 - 13:12:28: [SM] Native "VFormat" reported: Language phrase "Rule11" not found
L 05/25/2013 - 13:12:28: [SM] Displaying call stack trace for plugin "scrollingrules.smx":
L 05/25/2013 - 13:12:28: [SM]   [0]  Line 284, F:\Projets_SourceMod\sourcemod-1.3.8-windows\addons\sourcemod\scripting\include\halflife.inc::PrintToChatAll()
L 05/25/2013 - 13:12:28: [SM]   [1]  Line 307, f:\Projets_SourceMod\SourceMod\scrollingrules\scrollingrules.sp::Timer_SendMsgToAll()

Last edited by kaytaro; 05-25-2013 at 14:56.
kaytaro is offline
GunSpeed
Member
Join Date: Oct 2010
Old 08-10-2013 , 15:16   Re: [TF2]ScrollingRules
Reply With Quote #28

I am moving to morecolors.inc , lets say fresh start...

http://www.sourcemod.net/compiler.php

copied and pasted the scrollingrules files inside the text box, uncommented the specific line

Quote:
//#if defined USECOLORS
and removed "//" from that line.
Also changed <colors> to :
Quote:
#include <morecolors>
How can I include the morecolors.inc? This step isn't explained for me, I get this error when I try to compile it:
Quote:
/groups/sourcemod/upload_tmp/textvAuUOg.sp(56) : fatal error 120: cannot read from file: "morecolors"
And I can't upload .inc as it states its not a valid file (.sp only), I've tried the "anything" just to see the output...
GunSpeed is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-10-2013 , 15:38   Re: [TF2]ScrollingRules
Reply With Quote #29

Quote:
Originally Posted by GunSpeed View Post
snip
Do not use the online compiler. Compile it yourself with spcomp.exe, which can be found in the addons/sourcemod/scripting/ folder of your Sourcemod download.
ddhoward is offline
GunSpeed
Member
Join Date: Oct 2010
Old 08-10-2013 , 15:51   Re: [TF2]ScrollingRules
Reply With Quote #30

Quote:
Originally Posted by ddhoward View Post
Do not use the online compiler. Compile it yourself with spcomp.exe, which can be found in the addons/sourcemod/scripting/ folder of your Sourcemod download.
Thank you!
GunSpeed 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 07:53.


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