Raised This Month: $ Target: $400
 0% 

Advertisement System v1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose       
thEsp
BANNED
Join Date: Aug 2017
Old 03-05-2019 , 15:54   Advertisement System v1.2
Reply With Quote #1

Advertisement System v1.2

Description
This plugin is supposed to send messages to players playing on server.
Unlike the other outdated/old similar plugins, this has to offer more.
It includes conditions, advanced conditions, message mode/styles, abbreviations et cetera.

Conditions(Server)
---------------------------------------------------------------------------------------------------------
You want to advertise messages when there is something 'specific' ?
Well, now you can. The 1.1 update features new kind of things. Including these.
Here are conditions(For now):
  • map [map=%]
  • map type/game mode [map_type=%]
  • minimum players [min_players=#]
  • maximum players [max_players=#]

How do I use these? It's simple. Just add them before the message.

Example: [map=de_dust2][max_players=15]Map: &x04de_dust2&x01 | There aren't a lot of players so play &x03Only A
Result: Map: de_dust2 | There aren't a lot of players so play Only A
Another example: [map_type=cs_]This is a &x04hostage rescue map&x01. Counter-Terrorists should rescue the&x03 hostages&x01.
Result: This is a hostage rescue map. Counter-Terrorists should rescue the hostages.

Advanced Conditions(Player)
---------------------------------------------------------------------------------------------------------
Like the simple Conditions, these will send messages if there is something 'specific' BUT in player.
There's nothing to say since I described what these do.

Here are conditions(For now):
  • minimum frags [min_frags=#]
  • maximum frags [max_frags=#]
  • team [team=#]
  • life [life=%]

(Info about team)
(Info about life: Will be sent if player is dead OR alive)

Example: [life=dead]You are &x03dead&x01 so watch birds :)
Result: You are dead so watch birds :)

Another example: [team=1][life=alive]Plant the &x03bomb&x01 if you have it !
Result: Plant the bomb if you have it !

Styles
---------------------------------------------------------------------------------------------------------
[hud] - Prints a message in HUD (1 Color)
[chat] - Prints a message in chat (Up to 3 Color)
[center] - Prints a message in player's center (No color)
[notify] - Prints a message to player's console (No color, if Client CVar 'developer' is set to 1, will be shown in top left corner.)
[dhud] - Prints a bold message in HUD (1 Color)

Abbreviations
---------------------------------------------------------------------------------------------------------
As simple as it sounds, with these you can short words.
%map% - Server's current map
%srvname% - Server's name
%players% - Number of players playing in server
%maxplayers% - Number of maximum players
%srvip% - Server's IP (Including port)
%deaths% - Number of player's deaths
%kills% - Number of player's kills / frags
%name% - User's name

CVars
  • amx_ads_red - Red color amount (HUD Only | D: 0)
  • amx_ads_green - Green color amount (HUD Only | D: 255)
  • amx_ads_blue - Blue color amount (HUD Only | D: 0)
  • amx_ads_staytime - Time that message is displayed (HUD Only | D: 5)
  • amx_ads_delay - Time between each message (D: 15)

Notes
This plugin requires cromchat header.
Use ';' or '//' as comment line.
You can use multiple conditions, but this is the format: [conditions][advanced conditions][style] (DO NOT SWAP THEIR PLACES).
Attached Files
File Type: zip addons.zip (16.4 KB, 393 views)
File Type: sma Get Plugin or Get Source (amx_ads.sma - 530 views - 9.0 KB)

Last edited by thEsp; 07-23-2020 at 16:43. Reason: v1.2 Update
thEsp is offline
 



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:56.


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