Author Topic: Multi-line Advertisements  (Read 3104 times)

0 Members and 3 Guests are viewing this topic.

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Multi-line Advertisements
« on: February 25, 2010, 11:05:53 am »
Script Name: Multi-line Advertisements
Script Description displays pre-set ads in rotation every X seconds
Author: fri
Core Version: 2.7.2

Full Description:
This tiny script displays pre-set advertisements (or MOTD, whatever) in rotation in specified intervals of time. To edit them, simply modify ads.txt file (the very first line won't be shown, so don't even edit it). Can also display basic info, if put "info" instead of an ad in any line. Open advertisements.pas to alter more settings: color of text, line breaker (default: '\n') and time interval.



Uses Explode made by CurryWurst and DorkeyDear aka Curt.



« Last Edit: March 31, 2014, 11:52:21 am by freestyler »

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: Multi-line Advertisements
« Reply #1 on: February 25, 2010, 11:50:12 am »
Nice idea :D
You could use the Explode function which is abit faster than the old xsplit (dont ask how much, but it won't make any sense at least i think)
Also afaik FileExists() is now also supported by linux, so you can use it instead of xfileexists() :)

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Multi-line Advertisements
« Reply #2 on: March 04, 2010, 01:58:13 pm »
scripts is crashing my server :( maybe cauze OnAppIlde . Can u repair it, my friend? :D



Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Multi-line Advertisements
« Reply #3 on: March 05, 2010, 04:36:12 am »
I don't know what causes any errors for you, since everything works fine on my server. As far as I know, you have many scripts active all the time, so maybe one of them is causing a problem.

Just don't put any weird characters (i.e. ąśź) into ads.txt file and it should work fine.

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: Multi-line Advertisements
« Reply #4 on: March 05, 2010, 08:50:35 am »
scripts is crashing my server :( maybe cauze OnAppIlde . Can u repair it, my friend? :D
Post the errors, helps to solve the problems :D

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Multi-line Advertisements
« Reply #5 on: March 06, 2010, 02:48:32 pm »
thanks frii, working good.



Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Multi-line Advertisements (updated)
« Reply #6 on: October 10, 2011, 08:30:44 am »
Updated the script to fix an error I'm surprised no one noticed, and changed some minor things.

The time counter was a shortint instead of an integer. I don't know why I wrote it like that...