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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 09-09-2008 , 07:29   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #251

You have to use \ as an escape character.

"She said \"Blah blah blah\" and then went home"
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-09-2008 , 12:49   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #252

Quote:
Originally Posted by DJ Tsunami View Post
That's not a bug. You close the string with ", so of course it's not going to display anything after that. You have to escape it with \, like this:
Code:
"{GREEN}Type \"top\" to see top 10 players of the server"
Quote:
Originally Posted by imp-slash View Post
That doesn't work for me but as I sad it's not something big
But as far as I know it should work.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
The Killer (DK)
Member
Join Date: Mar 2008
Old 09-12-2008 , 17:51   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #253

hey :-)

great plugin!

but.. is it posible to make a random_adverts 0/1 cvar?

and the event function i post 244 is a great idea too!

keep up the good work :-)

Killer
The Killer (DK) is offline
Crap
Senior Member
Join Date: Aug 2008
Old 09-12-2008 , 18:26   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #254

Love the plugin. Would be perfect if it had the ability to have adverts/messages which would only be displayed on certain maps/certain events. The beetle's mod advert function had the ability to add like an "addadvertisement 'blahblahblah'" to individual map configs, which is extremely useful if you run certain plugins on only certain maps or have maps which need explanations popping up (maps with oddball rules and such).
Crap is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 09-13-2008 , 04:45   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #255

You can make a seperate advertisements file and change sm_advertisements_file for that specific map.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Crap
Senior Member
Join Date: Aug 2008
Old 09-13-2008 , 12:29   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #256

Quote:
Originally Posted by DJ Tsunami View Post
You can make a seperate advertisements file and change sm_advertisements_file for that specific map.
You sir, are a very smart man.

On events would still be nice, but I'm certain I can just rig messages until it's possible
Crap is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 09-13-2008 , 19:32   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #257

I am installing this soon.
__________________
recon0 is offline
soupyblister
Junior Member
Join Date: Aug 2008
Old 09-17-2008 , 15:31   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #258

Need some help, I am new to this kind of stuff. I installed the plug in, smx went to the plug in folder, and the advertiesment txt went to the cfg folder. Here is what I have:
"Advertisements"
{
"1"
{

"type" "T"
"text" "{RED}Welcome to the Allied Fighting Force Server"
"{GREEN}Current map is {CURRENTMAP}"
"{GREEN}Next map is{SM_NEXTMAP}"
"{GREEN}type radio to listen to the radio
"{GREEN}to turn the radio off type off"
"flags"
}
}


I left the flags blank because I want everyone in the server to see. Well its not coming up. I typed sm_advertisements_enabled 1 in the console, and get unknown command. So I do not know if I installed it wrong, or I typed the code wrong in the txt.
soupyblister is offline
MaKTaiL
Senior Member
Join Date: Jul 2008
Location: Brazil
Old 09-17-2008 , 17:02   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #259

Copy and paste the lines below into your advertisements.txt file. It should work now.

Code:
"Advertisements"
{
 "1"
 {
  "type"  "T"
  "text"  "{RED} Welcome to the Allied Fighting Force Server"
 }
 "2"
 {
  "type"  "T"
  "text"  "{GREEN} Current map is {CURRENTMAP}"
 }
 "3"
 {
  "type"  "T"
  "text"  "{GREEN} Next map is {SM_NEXTMAP}"
 }
 "4"
 {
  "type"  "T"
  "text"  "{GREEN} Type radio to listen to the radio."
 }
 "5"
 {
  "type"  "T"
  "text"  "{GREEN} To turn the radio off type off."
 }
}
MaKTaiL is offline
ayuki
Member
Join Date: May 2008
Old 09-17-2008 , 17:51   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #260

[SM] Plugin encountered error 25: Call was aborted
[SM] Native "SetFailState" reported: File Not Found: addons/sourcemod/configs/1
[SM] Debug mode is not enabled for "advertisements.smx"
[SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 51 on


file run in other serveur
sm 1.0.4

// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
// - Colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
// {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
// - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
"1"
{
"type" "H"
"text" "http://corporateoldschool.fr"
}
"2"
{
"type" "T"
"text" "{RED} fun and fair play"
}
"3"
{
"type" "M"
"text" "La prochaine map {SM_NEXTMAP} dans {TIMELEFT} minutes."
"flags" "cft"
}
"4"
{
"type" "S"
"text" "{GREEN} Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
"flags" "z"
}
"5"
{
"type" "T"
"text" "{ORANGE} Admins: friendly fire is {BOOL:MP_FRIENDLYFIRE}."
"flags" "cft"
}
"6"
{
"type" "T"
"text" "{LIGHTBLUE} TEAM CORPORATE OLD SCHOOL ."
}
"7"
{
"type" "S"
"text" "{GREEN}Map en cours {CURRENTMAP}Tapez sounds pour activer/desactver les sons."
}
"8"
{
"type" "S"
"text" "{LIGHTGREEN} tapez rank ou top."
}
"9"
{
"type" "S"
"text" "{GREEN}ajouter notre serveur fun map goremode as vos favoris{LIGHTGREEN}ip:88.191.94.156:27015 ."
}
"10"
{
"type" "S"
"text" "{DEFAULT}les admins ont toujours raison et si tu n'est pas content change de serveur."
}
}
__________________

ayuki 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:02.


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