View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-01-2008 , 13:11   VIP Access - Make money from your server! [Updated 17/03/2010]
Reply With Quote #1

VIP Access

Description:
Ever wanted to make money off your server, but couldnt find a decent way to advertise that you were willing admin slots?
This plugin allows you to advertise VIP extras on your server!


Cvars:
vip_adminfriendsname - Sets who the players should contact if they want to buy VIP (Default - "FriendsName")
vip_adminemailaddress - Sets the email address players should contact if they want to buy VIP (Default - "AdminEmailAddress")
vip_cost - Sets the cost of VIP (Default - "$10 (U.S. dollars)")
vip_tag - Sets the VIP tag (Default - "[VIP]")
vip_advertise - Turns the advertising on player spawn <on|off> (Default - "1")
vip_website_on - Turns the website advert <on|off> (Default - "0")
vip_website - Sets the website people should go to for more info (Default - "http://www.example.com/go_here")
vip_irc_on - Turns the IRC advert <on|off> (Default - "0")
vip_irc - Sets the irc channel people should go to for more info (Default - "#vip @ gamesurge")


Client commands:
/vip - Shows if you are a VIP or not
/vips - Shows a list of VIPs currently on the server
/viphelp - Opens an MOTD showing information about VIP
/vipinfo - Advertises information about VIP to the player in chat


Coming Up:

vip_advertise cvar
Advertise your website
Allow people to contact you on AIM, IRC etc (Cvars will be added for these)
vips.ini file (To keep vips separate from users.ini)
vip flags (Define what accesses each VIP has separately)
Add "amx_addvip" and "amx_removevip" admin console commands
Add more accesses
A php script for your website so VIPs can sign up without being in game!


Adding a VIP:
Open the file "VIP.ini" (Located in cstrike/addons/amxmodx/configs/VIP.ini)
Find the users steamID and decide what flags to give them
Each line must be layed out like this:
Quote:
"STEAM_ID" "flags" ;Name that this record holds
Remember to use quotes
The vip.ini file has a list of what each flag gives the user
It might be a good idea to put a comment at the end of the line stating what date they bought VIP


The MOTD:
The MOTD (downloadable below) is VERY basic
If players type "/viphelp" this will open in game
The default MOTD will simply say "Buy VIP!"
Please note that a small amount of knowledge of HTML is helpful when editing the MOTD


Notes:
You need to use a STEAM server for this plugin to work
You need to download the cstrike.zip with all the other plugins, otherwise your accesses wont work at all
If you want to include the bhop abilities, you need to download from connorr's thread, located below
Put VIP.amxx at the top of your plugins.ini
See servers using this plugin here.


ScreenShots:





Credits:
Quote:
/*
* Thanks to SchlumPF for all the help on the VIP flags - http://forums.alliedmods.net/member.php?u=26411
* Thanks to ReymonARG for his admin flags system - http://forums.alliedmods.net/showthread.php?t=87635
* Thanks to xPaw for general help whenever i needed it - http://forums.alliedmods.net/member.php?u=39377
* Thanks to FatalisDK for KZMoneys. Raeving it big time - http://kzmonkeys.net/
* Thanks to sgtbane for his hats plugin - http://forums.alliedmods.net/showthread.php?t=58374
* Thanks to GHW_Chronic for his GHR plugin - http://forums.alliedmods.net/showthread.php?t=41054
* Thanks to stupok for his magic marker plugin - http://forums.alliedmods.net/showthread.php?t=56301
* Thanks to Deviance for his sell weapons plugin - http://forums.alliedmods.net/showthread.php?t=54702
* Thanks to ConnorMcLeod for his bhop abilities plugin - http://forums.alliedmods.net/showthread.php?t=69840
*/
Update Log:
v3.1
Not a huge change
Just updated the code a bit

v3.0
Added VIP flags
Added more VIP accesses
Added more commands
Added a vip.cfg for cvars
Updated the VIP in scoreboard method (again)
Updated and tidied code

v2.1
Added the ResetHUD event so "VIP" should be should in the scoreboard more often

v2.0
Added bhop, hats, sell, graffiti, hook
Added VIP.ini file to keep VIPs separate from admins
Updated vipinfo.txt
Added everything to a .zip

v1.4
Updated code
Removed redundant code
Removed vip_advertisetime cvar
Removed spam when there was more than 5 ppl on the server

v1.3
Added CVAR: vip_advertisetime
Added CVAR: vip_website_on
Added CVAR: vip_website
Added CVAR: vip_irc_on
Added CVAR: vip_irc

v1.2
Removed the advertise time
"Adverts" only show on player spawn
This fixes the spam that some servers got
added new cvar vip_advertise

v1.1
Ballesed up the plugin
Fixed now

v1.0
Public release
Attached Files
File Type: zip cstrike.zip (1.31 MB, 8151 views)
File Type: sma Get Plugin or Get Source (VIP.sma - 7622 views - 14.8 KB)

Last edited by minimiller; 03-17-2010 at 15:45. Reason: v3.1
minimiller is offline
Send a message via MSN to minimiller