Raised This Month: $70 Target: $400
 17% 

Advertisement System v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
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, 125 views)
File Type: sma Get Plugin or Get Source (amx_ads.sma - 163 views - 9.0 KB)

Last edited by thEsp; 07-23-2020 at 16:43. Reason: v1.2 Update
thEsp is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
Old 04-03-2019 , 08:24   Re: Advertisement System v1.1
Reply With Quote #2

Update 1.1: 4/3/2019 - 13:19 (GMT+1)
Added conditions, advanced conditions, message mode/styles et cetera.
thEsp is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 04-03-2019 , 09:23   Re: Advertisement System v1.1
Reply With Quote #3

Nice work , GG
__________________
SED LYF !!!
SHIELD755 is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
Old 04-03-2019 , 09:25   Re: Advertisement System v1.1
Reply With Quote #4

Quote:
Originally Posted by SHIELD755 View Post
Nice work , GG
Thank you
thEsp is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-03-2019 , 20:55   Re: Advertisement System v1.1
Reply With Quote #5

"other outdated/old similar plugins" Is my attitude rubbing off? lol. Is there? Will there be a buzzword filter to autollama or / etc? please please unlike the old && outdated... Thank you sir.
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
Old 04-04-2019 , 03:30   Re: Advertisement System v1.1
Reply With Quote #6

Quote:
Originally Posted by DJEarthQuake View Post
"other outdated/old similar plugins" Is my attitude rubbing off? lol. Is there? Will there be a buzzword filter to autollama or / etc? please please unlike the old && outdated... Thank you sir.
What ?
thEsp is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 04-04-2019 , 10:33   Re: Advertisement System v1.1
Reply With Quote #7

Autoresponder and Advertiser (with color and conditions!)
Spam / buzzword filter.

Instead of kick, gag, slay, ban player for saying bad word / spam/ buzzword. Another more unique variable option could be make them into a llama using adminmod.amx.

Word filter: yes or no?
__________________
"It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie
"Mathematics, rightly viewed, possesses not only truth, but supreme beauty a beauty cold and austere, like that of sculpture..." -Bertrand Russell
DJEarthQuake is offline
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
Old 04-04-2019 , 11:47   Re: Advertisement System v1.1
Reply With Quote #8

Not necessarily needed, there are tens of word filters/swear removers.
Thus, I've been modifying plugin and I'll update it whenever I can. But the lack of ideas is holding me down...
thEsp is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-22-2019 , 23:15   Re: Advertisement System v1.1
Reply With Quote #9

very nice job. congrats.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 06-24-2019 , 03:07   Re: Advertisement System v1.1
Reply With Quote #10

This Advertisement System Is Already Exist.

You're Trying To Steal The Work Of Other Author...

If No So Prove That U Created This.
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Old 06-24-2019, 03:17
thEsp
This message has been deleted by thEsp.
Reply


Thread Tools
Display Modes

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 13:42.


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