View Single Post
Author Message
Arthur.PinionGG
Senior Member
Join Date: Mar 2013
Old 06-12-2013 , 01:40   Pinion Adverts [Video Ads + Steam Community]
Reply With Quote #1

Pinion Adverts

Pinion is all about helping communities help themselves. We provide community owners advertising revenue. This revenue can be used to improve infrastructure through the hiring of better servers, the addition of new ones together or anything at all, it’s your money! Through the automated signup process, Pinion places it’s advertising mechanics within your Message of the Day or MOTD. Each time the MOTD is seen by a player, no matter what time of day, it is treated as an impression.

At the end of the month you are advised how many impressions your servers delivered and how much income was generated. You are then paid directly into your paypal account within 60 days.

What we pay you for

-We purchase all impressions from guaranteed regions that complete
-We purchase all impressions from guaranteed regions that don't fill due to lack of content
-We purchase all impressions from non guaranteed regions that fill and complete

Current Guaranteed $3.00 Regions - We purchase all traffic, ad served or not, this means fill is never a factor!
  • USA
  • Australia
  • United Kingdom

Current Non-Guaranteed $3.00 Regions - We purchase all traffic that serves adverts
  • Austria
  • Belgium
  • Canada
  • Denmark
  • Finland
  • France
  • Germany
  • New Zealand
  • Norway
Rest of World $2.20 - We purchase all traffic that serves adverts

Bonuses
We currently offer a bonus every month for higher quality traffic with a higher clickthrough rate, these vary month to month and are visible in control panel.
  • 1% CTR - 10% CPM Bonus
  • 3% CTR - 15% CPM Bonus


Requirements
Please choose one, we recommend Steamtools.Let's Get Started
  • Register your community here
  • Install the plugin and extensions
  • From Control Panel download your community specific configuration file and upload it to the cfg/sourcemod directory of your game server.
Notes
We highly recommend the all-in-one-self-updating.zip package, this has the compiled plugin, including all sourcecode and required extensions. If you download the .smx ensure you have the required extensions installed.

More advanced users might like to compile the plugin themselves, our Github repo can be found here.

Need Help? Contact Support

Run a Garry's Mod Community? Now available, visit Control panel to download the LUA Script and Config file.

Code:
CVARs
// Community ID
// -
// Default: ""
sm_pinion_adverts_community ""

// If set to zero, players may close the MOTD window without any wait period
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_pinion_adverts_force_complete "1"

// Set to 1 to prevent displaying ads to users with access to 'advertisement_immunity'
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_pinion_adverts_immunity_enable "0"

// 0: Review disabled. 
//  - 1: Ads show at start of round. 
//  - 2: Ads show at end of round. 
//  - 3: Ads show on death.'
// -
// Default: "1"
sm_pinion_adverts_review "1"
// Duration (in minutes) until mid-map MOTD re-view
// -
// Default: "20"
// Minimum: "15.000000"
sm_pinion_adverts_review_time "20"

// Set to 0 to hide messages about the RewardMe command
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_pinion_adverts_chat_advert "1"
Change log

Code:
        
Changelog
	1.16.16 <-> 2016 9/23 - Caelan Borowiec
		Changed CSGO to use ClientCommand for 'joingame'
	1.16.15 <-> 2016 9/14 - Caelan Borowiec
		Added support for BrainBread2
		Fixed team joining issue with CSGO
	1.16.14 <-> 2016 7/31 - Caelan Borowiec
		TF2 folder path was incorrect
	1.16.13 <-> 2016 7/26 - Caelan Borowiec
		Updates to web path logic for game folders
	1.16.12 <-> 2016 7/10 - Caelan Borowiec
			- Fixed issues with team selection menu in CS:GO
	1.16.11 <-> 2016 5/12 - Caelan Borowiec
			- Added cvar to disable messages about RewardMe command
			- "joingame" command no longer works in CS:GO via FakeClientCommand. 
	1.16.10 <-> 2016 4/12 - Caelan Borowiec
			- Disabled the ClosePage call after 2 minute timer
	1.16.09 <-> 2016 3/30 - Caelan Borowiec
			- Set RewardMe hint messages to start on first spawn
			- Colorized RewardMe chat message
			- Improved the hint message
	1.16.08 <-> 2016 3/28 - Caelan Borowiec
			- Renamed BetUnikrn command to "RewardMe"
	1.16.07 <-> 2016 3/25 - Caelan Borowiec
			- Switched to using a chat hook for the BetUnikrn command
			- BetUnikrn command is no longer case sensitive
	1.16.06 <-> 2016 3/25 - Caelan Borowiec
			- Set return value for BetUnikrn command
			- Increased url string length
	1.16.05 <-> 2016 3/25 - Caelan Borowiec
			- Made BetUnikrn command lower case
			- Chat message is now also printed on first death
	1.16.04 <-> 2016 3/24 - Caelan Borowiec
			- Added pop-up workaround for CSGO MOTD issues
	1.16.03 <-> 2016 3/21 - Caelan Borowiec
			- Re-added prompts and "!BetUnikrn" command for the Pinion Pot of Gold	
	1.16.02 <-> 2016 3/12 - Caelan Borowiec
			- Re-added server IP and port data to the url path
	1.16.01 <-> 2016 3/4 - Caelan Borowiec
			- Fixed tf/tf2 string issue
	1.16.00 <-> 2016 1/12 - Caelan Borowiec
		Updated all cvars to follow the naming convention sm_pinion_adverts_*
			- New version cvar: sm_pinion_adverts_version
			- See config for other cvars
		Deprecated all old cvars: 
			Old cvar names will still work, but will not be entered into the config, and will log
		Deprecated sm_motdredirect_url cvar
		Added sm_pinion_adverts_community cvar
		Changed MOTD URL format to use textual community IDs rather than IP addresses
		The old sm_motdredirect_url cvar will still work as before, but will print an error
		Updated GetGameWebDir with corrected strings	
	1.12.33 <-> 2015 6/26 - Caelan Borowiec
		Changed timer response handling
	1.12.32 <-> 2015 6/22 - Caelan Borowiec
		Added a console variable to disable force completion
		Forced wait time has been removed on quickplay servers
		Moved wait-countdown messages to console
		Added experimental review for TF2, CSS, DoD:S, HL2:DM, No More Room In Hell, and Double Action: Boogaloo
		Set default wait to 6 seconds (down from 30)
	1.12.31 <-> 2015 5/15 - Caelan Borowiec
		Updated plugin and EasyHTTP to support SourceMod 1.7.x
		Fixed compatibility issues with cURL and Socket
		Added support for SteamWorks
		Added all copies of all required includes to GitHub	
	1.12.30 <-> 2015 1/29 - Caelan Borowiec
		Merged sm_motdredirect_review and sm_motdredirect_tf2_review_event cvars
		Added review support for all games
		Added 'player death' option to review
		Added support for GoldenEye: Source
		Added support for Hidden: Source
		Added support for Double Action: Boogaloo
		Added support for Zombie Panic! Source
		Added support for Fistful of Frags
	1.12.29 <-> 2014 5/5 - Caelan Borowiec
		Replaced json.inc with EasyJSON.inc
		Fixed handle leak that was being caused json.inc
	1.12.28 <-> 2014 1/17 - Caelan Borowiec
		Removed unnecessary CloseHandle
		Possibly fixed handle leak in EasyHTTP
	1.12.27 <-> 2014 1/14 - Caelan Borowiec
		Fixed audio continuing to play in No More Room in Hell after the ad is closed.
	1.12.26 <-> 2013 12/16 - Caelan Borowiec
		Disabled TF2 MOTD reopening feature
	1.12.25 <-> 2013 12/15 - Arthur 
		Temporary revision
	1.12.24 <-> 2013 12/5 - Caelan Borowiec
		Added support for No More Room Left in Hell
		Disabled SteamTools use in CSGO to prevent errors
		Fixed the team selection menu not appearing after closing the MOTD in Nuclear Dawn
		Fixes for TF2 MOTD Changes:
			Fixes/changes the method used to reopen the MOTD.
			Changes the 'reopen URL' from "" to "http:// ".
			Limited reopening the MOTD to once every 3 seconds.
			Other games are unaffected by these fixes for TF2
	1.12.22 <-> 2013 10/5 - Caelan Borowiec
		The default motd_text.txt will now be backed up and replaced with a message telling players how to enable html MOTDs
			Custom/edited copies of motd_text.txt will not be touched
		Made the ad URL shorter by reducing the length of variable names.
	1.12.21 <-> 2013 7/23 - Caelan Borowiec
		Fixed a case where delay times from the backend would be cached after the first connection
	1.12.20 <-> 2013 7/18 - Caelan Borowiec
		Fixed a case where delay queries would not be started
		Fixed a case where delay times from the backend could be cached
	1.12.19 <-> 2013 7/16 - David Banham
		Stop redirecting the page to about:blank before cleanup can be done
	1.12.18 <-> 2013 6/5 - Caelan Borowiec
		Removed "Pot of Gold" message
		Added check to prevent more than one query thread per client
		Added a check to prevent queries running for clients with immunity
		Changed query handing to query as long as the player is in the default cooldown
		Debug improvements to EasyHTTP and Helper_GetAdStatus_Complete
		Fixed an issue that could happen if the plugin received no data from a query
		Improved some debug messages
		Changed the backend interface to expect data in JSON
		Fixed the html page remaining loaded after the panel is closed.
	1.12.17 <-> 2013 5/29 - Hotfix Based on 1.12.16
		Increased polling rate
		Changed the default wait time to a hard-coded 30 seconds
		Disabled debug mode
	1.12.16 <-> 2013 4/25 - Caelan Borowiec
		Fixed an issue with the plugin loading a blank motd window
		Made SteamTools the preferred extension for queries
		Replaced cURL/Socket code with a wrapper for EasyHTTP.inc
			- (Plugin now requires EasyHTTP.inc to compile)
		Added a countermeasure to prevent players from blocking the closed_htmlpage command
		Changed the "you must wait" message to only display when a delay has been loaded from the backend.
		Removed bounds on the page-delay timer
		Changed the default wait time to a hard-coded 43 seconds
		Removed hard-coded 3 second addition to the delay
		Plugin will not run queries on games where dynamic page-delay durations are not supported
		Plugin no longer requires cURL/Socket to be installed on games where dynamic page-delay durations are not supported
	1.12.15 <-> 2013 2/6 - Caelan Borowiec
		Added dynamic minimum durations
		Added countermeasure to deal with players bypassing the motd window
	1.12.14 <-> 2013 1/24 - Caelan Borowiec
		Updated code to use CS:GO's new protobuff methods (Fixes the plugin not functioning in CS:GO).
	1.12.13 <-> 2013 1/20 - Caelan Borowiec
		Patched a possible memory leak
		Improved player immunity handling
		Added immunity for initial connection advert's delay timer
	1.12.12 <-> 2012 12/12 - Caelan Borowiec
		Version bump
	1.8.2-pre-12 <-> 2012 12/7 - Caelan Borowiec
		Fixed a bug that would prevent a player from seeing the jointeam menu if they idled too long after joining the server (For real this time).
		Fixed a resulting bug that would open a blank page two minutes after joining the server.
	1.8.2-pre-11 <-> 2012 12/5 - Caelan Borowiec
		Changed the force_min_duration cvar handling so that the delay length will now match the cvar value.
		Fixed a bug that would prevent a player from seeing the jointeam menu if they idled too long after joining the server.
		Fixed the round-end option for re-view ads not working on Arena maps.
	1.8.2-pre-10 <-> 2012 11/28 - Caelan Borowiec
		Converted LoadPage() to use DataTimers
		Added code to pass data indicating what triggered an ad view to the backend
		Fixed issue with admin immunity functionality
	1.8.2-pre-9 <-> 2012 11/20 - Caelan Borowiec
		Lowered the default value of sm_motdredirect_review_time from 40 to 30
	1.8.2-pre-8 <-> 2012 11/20 - Caelan Borowiec
		Added sm_motdredirect_tf2_review_event cvar to configure if 'review' ads are shown at round end or round start in TF2
		Added a check to prevent errors in ClosePage()
		Added checks to prevent errors when calling GetClientAuthString
	1.8.2-pre-7 <-> 2012 11/16 - Caelan Borowiec
		Changed event used for TF2 round-start adverts so that ads are displayed earlier.
		Renamed ConVar sm_advertisement_immunity_enable to sm_motdredirect_immunity_enable to be consistent with other cvar names.
		Made advertisement time restrictions apply to ads shown after L4D1/L4D2 map stage transitions.
		Updated sm_motdredirect_url checking code to prevent false-positives from being logged.
		Updated motd.txt replacement code to prevent overwriting the backup file.
		MOTD window will now auto-close after two minutes.
	1.8.2-pre-6 <-> 2012 11/13 - Caelan Borowiec
		Fixed adverts not working for Left 4 Dead 1 map stage transitions
		Revised plugin versioning scheme
	1.8.2-pre-5 <-> 2012 11/13 - Caelan Borowiec
		Disabled minimum display time feature in L4D and L4D2
	1.8.2-pre-4 <-> 2012 11/13 - Caelan Borowiec
		Moved round-end advertisements to now show during setup time at the start of the round.
	1.8.2-pre-3 <-> 2012 11/11 - Caelan Borowiec
		Corrected version numbering in the #define
		Added plugin version number to the query string
		Changed TF2 end-round advertisement handling:  Now all players will see an ad during the same round-end period after a global timer elapses.
	1.8.2-pre-2 <-> 2012 11/10 - Caelan Borowiec
		Fixed incompatible plugin message displaying with url-encoded text
		Added support for displaying advertisements after Left 4 Dead 1/Left 4 Dead 2 map stage transitions
		Added advertisement immunity and related configuration settings
	1.8.2-pre-1 <-> 2012 10/31 - Caelan Borowiec
		Added an error message to alert users if sm_motdredirect_url has not been assigned a value.
		Added functionality to check for incompatible plugins and display a notice via the MOTD
		Updated plugin comments.
	1.8.2 <-> 2012 - Nicholas Hastings
		Fixed harmless invalid client error that would occasionally be logged.
		Updated wait-to-close mention to mention Pinion Pot of Gold.
		Fixed regression in 1.8.0 causing ND to not open team menu after MOTD close.
	1.8.1 <-> 2012 - Nicholas Hastings
		Fixed MOTD panel being unclosable on most games if sm_motdredirect_force_min_duration set to 0.
	1.8 <-> 2012 - Nicholas Hastings
		Updated game detection.
		Added support for CS:GO.
		Added support for "Updater" (https://forums.alliedmods.net/showthread.php?t=169095).
		Temporarily reverted ForceHTML plugin integration.
		Fixed team join issues in CS:S and DOD:S.
		Fixed player hits conflicting with some other MotD plugins.
		Specified motdfile (motd.txt) no longer gets clobbered. (!motd will show your specified MotD).
		Various other cleanup, error fixing, and error checks.
	1.7 <-> 2012 - 8/8 Mana (unreleased)
		Changed MOTD skip cvar to Enable/Disable option only
		Added a message notifying players when they can close the MOTD
		Integrated ForceHTML Plugin:
		http://forums.alliedmods.net/showthread.php?t=172864
	1.6 <-> 2012 - 8/1 Mana (unreleased)
		Added a cooldown option for skipping the MOTD.
		Defaults to 5 seconds of not being able to "close" the MOTD.
		Added a code option of only hooking the first MOTD, in case it conflicts with other plugins
	1.5.1 <-> 2012 - 5/24 Sam Gentle
		Made the MOTD hit use a javascript: url
	1.5 <-> 2012 - 5/24 Mana
		Removed event hooks, no longer necessary
		Blocks current MOTD and replaces it a new
		Hooks MOTD closed button
		Plugin now works immediately after being loaded
		Left legacy code for writing MOTD to file (in case updates break sourcemod)
	1.4.2 <-> 2012 - 20/02 Azelphur
		Stop adverts when players join the spectator team
	1.4.1 <-> 2011 - 08/09 LumiStanc
		Add version CVA
	1.4 <-> 2011 - 08/05 David Banham
		Integrated code to update motd.txt config file
		Changed variable names as appropriate
		Changed config file name
	1.3 <-> 2011 - 07/24 LumiStance
		Add host ip and port to url, add auth_id
		Rename cvar to sm_motdpagehit_url
		Add L4D hook for player_left_checkpoint
		Change player_spawn to player_team for CSS and TF2
		Have separate hook callbacks for L4D and CSS/TF2
	1.2 <-> 2011 - 07/09 LumiStance
		Improve support for TF2 (v1.1 interferes with join sequence)
		Add Event_HandleSpawn delayed response
		Add checks for IsClientConnected(), GetClientTeam(), and IsFakeClient()
	1.1 <-> 2011 - 07/08 LumiStance
		Add code to hook player_left_start_area if it exists instead of player_spawn
	1.0 <-> 2011 - 07/08 LumiStance
		Initial Version
		Modify ShowHiddenMOTDPanel into more generic ShowMOTDPanelEx
		Add enum constants for ShowMOTDPanelEx command parameter
		Add code and url cvar for ShowMOTDPanelEx at player_spawn
Attached Files
File Type: zip addons.zip (2.62 MB, 594 views)
File Type: smx pinion_adverts.smx (39.8 KB, 498 views)
File Type: sp Get Plugin or Get Source (pinion_adverts.sp - 596 views - 58.4 KB)

Last edited by Arthur.PinionGG; 07-15-2017 at 07:38.
Arthur.PinionGG is offline