AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Advertisement System v1.2 (https://forums.alliedmods.net/showthread.php?t=314756)

thEsp 03-05-2019 15:54

Advertisement System v1.2
 
2 Attachment(s)
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).

thEsp 04-03-2019 08:24

Re: Advertisement System v1.1
 
Update 1.1: 4/3/2019 - 13:19 (GMT+1)
Added conditions, advanced conditions, message mode/styles et cetera.

SHIELD755 04-03-2019 09:23

Re: Advertisement System v1.1
 
Nice work , GG :)

thEsp 04-03-2019 09:25

Re: Advertisement System v1.1
 
Quote:

Originally Posted by SHIELD755 (Post 2646111)
Nice work , GG :)

Thank you :D

DJEarthQuake 04-03-2019 20:55

Re: Advertisement System v1.1
 
"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.

thEsp 04-04-2019 03:30

Re: Advertisement System v1.1
 
Quote:

Originally Posted by DJEarthQuake (Post 2646186)
"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 ?

DJEarthQuake 04-04-2019 10:33

Re: Advertisement System v1.1
 
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?

thEsp 04-04-2019 11:47

Re: Advertisement System v1.1
 
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...

georgik57 06-22-2019 23:15

Re: Advertisement System v1.1
 
very nice job. congrats.

DON KHAN 1 06-24-2019 03:07

Re: Advertisement System v1.1
 
This Advertisement System Is Already Exist.

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

If No So Prove That U Created This.


All times are GMT -4. The time now is 06:19.

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