AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   VIP Access - Make money from your server! [Updated 17/03/2010] (https://forums.alliedmods.net/showthread.php?t=76883)

minimiller 09-01-2008 13:11

VIP Access - Make money from your server! [Updated 17/03/2010]
 
3 Attachment(s)
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:
http://id0rgq.blu.livefilestore.com/...MEzYs/VIP1.jpg

http://id0rgq.blu.livefilestore.com/...c96iw/VIP3.jpg


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

grimvh2 09-01-2008 13:23

Re: VIP access - Make money from your server!
 
Hmm ... you should make the flag unique instead of "b" , somthing like "n" thats ADMIN_LEVEL_B . And what can a vip do?

minimiller 09-01-2008 13:25

Re: VIP access - Make money from your server!
 
As default, VIPs get VIP on the scoreboard and reserved slots
If admins want to give more access, they have to give more flags in users.ini
E.g. if admin wants to give the VIP access to build with blockmaker, edit the users.ini and give them "bm"
Obviously VIP access will change with different plugins

maplebest 09-01-2008 13:25

Re: VIP access - Make money from your server!
 
Errors:

Code:

Plugin failed to compile! Please try contacting the author.Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : error 017: undefined symbol "PLUGIN_NAME"
/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : error 017: undefined symbol "PLUGIN_VERSION"
/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : error 001: expected token: ";", but found ")"
/home/groups/alliedmodders/forums/files/3/0/0/4/4/30998.attach(23) : fatal error 107: too many error messages on one line

Compilation aborted.

4 Errors.

EDIT:

OFF TOPIC:

Shit... i gave you karma but wrote "maplebet" instead of "maplebest" :O

Lawl...

minimiller 09-01-2008 13:29

Re: VIP access - Make money from your server!
 
o shit
i done a late update and ballesed it up aparently
2 seconds

EDIT:
Update to v1.1
Plugin is now fixed

PvtSmithFSSF 09-01-2008 13:45

Re: VIP access - Make money from your server!
 
Great work!
Maybe a cvar to change whether it shows icon near name or not.

GJ

Fry! 09-01-2008 13:56

Re: VIP access - Make money from your server!
 
Yeah, this is very cool plugin ... :D
Good Job minimiller. :)

richman 09-01-2008 16:30

Re: VIP access - Make money from your server!
 
Sweet plugin minimiller, i've been looking for something like this for my own server!

TYVM!!

Reaper2331 09-02-2008 07:15

Re: VIP access - Make money from your server!
 
i would suggest making a new .ini file for VIP's much easier to handle.

minimiller 09-02-2008 07:27

Re: VIP access - Make money from your server!
 
I thought about that, but i dunno how to do it :(
I might give it a go, but illl probly fail


All times are GMT -4. The time now is 07:44.

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