Skip to content

VenomzGaming/Sp-Advertisement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Sp-Advertisement

This plugin is a simple advert system for any games in Source-Python. It displays advert with a regular interval define in configuration.

Configuration

Advert interval
Time in seconds between adverts. (Must be an integer)

Advert order
Define the appearance order of advert.

  0 - Follow order of advert in json file.
  1 - Get random advert.

Example :

{
  "Adverts": [
    {
      "type": "say",
      "message": "Welcome on {hostname} !",
      "translation": "say:1"
    },
    {
      "type": "say",
      "message": "The current map is {currentmap}",
      "translation": "say:2"
    },
    {
      "type": "hint",
      "message": "Kill them all ! [Friendlyfire : {mp_friendlyfire}]",
      "translation": "hint:1"
    },
    {
      "type": "hud",
      "message": "The time is {time}",
      "translation": "hud:1"
    }
  ]
}

The translation attribute must contains the key of advert translation and must refer to a key in 'advertissement_server.ini'. If "translation" attribute is defined you are not oblige to write something in "message" key.

{
  "Adverts": [
    {
      "type": "say",
      "message": "",
      "translation": "say:1"
    }
  ]
}

Define template variables :

  - {currentmap} : Show current map name
  - {date} : Show current date
  - {time} : Show current time



Other variables :
You can also show all cvar of your server, like mp_friendlyfire, mp_roundtime ...

Releases

No releases published

Packages

No packages published

Languages