Skip to content

Commands

johnoclockdk edited this page Nov 16, 2023 · 1 revision

CSS Advertisement Commands

Base Command

css_adv / css_advertisements

Add a New Advertisement

  • Usage: css_adv add "<message>" "<location>" [port]
  • Example: css_adv add "Check out our new maps!" "chat" "27015, 27020"
  • Example (Any Server): css_adv add "Join our weekend event!" "center"
  • Note: Can contain multiple server ports, separated by commas.
  • Note: Leave 'port' blank to target any server.

Edit an Existing Advertisement

  • Usage: css_adv edit <id> "<new message>"
  • Example: css_adv edit 3 "New server IP: 123.456.789.0"

Remove an Advertisement

  • Usage: css_adv remove <id>
  • Example: css_adv remove 4
  • Note: 'delete' can be used instead of 'remove'

List All Advertisements

  • Usage: css_adv list
  • Example: css_adv list
  • Note: This command will display all the ads with their IDs, messages, locations, and associated ports.

Reload Advertisements from Database

  • Usage: css_adv reload
  • Example: css_adv reload
  • Note: This command will reload all the advertisements from the database.