First of all, I would like to thank you all for helping me on rewriting / improving that plugin which Dunn0 have made.
I want to thank all those people who helped me: Dunn0, Stereo, jimaway, drekes, Bugsy, Erox902, Emp`, ConnorMcLeod, Backstabnoob, fysiks, wickedd, vitorrossi, YamiKaitou, aaarnas, SeriousSpot, souvikdas95, alicx
What does this plugin do?
1. Gives grenade set (HE, 2FB, SG) every round.
2. Gives defuse kit, armor with helmet every round.
3. Gives 500$ per kill and 800$ per head shot kill.
4. Gives 15HP per kill and 30HP per head shot kill.
5. Gives ability to see VIP's bullet damage in real time.
6. Only VIP's can buy snipers. (AWP, G3SG1, SG550)
7. Special VIP models.
8. From second round VIP will see VIP menu:
1. M4A1 with Deagle.
2. AK47 with Deagle.
3. AWP with Deagle.
Type in chat /vips to see if there are any of them online.
1. VIP won't get VIP menu or the grenades if current map of the server contain the one you have written in mapnames.ini.
For example: if current map name contain awp_ in it, and you have written awp_ in mapnames.ini, VIP won't get VIP menu and grenades.
2. VIP won't get AWP choise if current map of the server contain the one you have written in awpmapnames.ini.
For example: if current map contain 2x2 in it, and you have written 2x2 in awpmapnames.ini, VIP won't get AWP choice in those maps.
3. VIP will see AWP choice only if there will be enough players in each team (DEFAULT: 5CT, 5TR)
4. /vipmenu command, say it in chat to get VIP menu (works only if you haven't taken it already)
5. Quite a few bug / glitch fixes!
6. More cvars!
8. Easy setting up the VIP flag, that will get all privileges, LINE: 95
9. Special VIP models!
What cvars does this plugin have?
vip_hp 15 //How many hp VIP will get per kill
vip_hp_hs 30 //How many hp VIP will get per head shot kill
vip_max_hp 100 //How many hp VIP can have in total
vip_money_per_damage 3 //How many $ VIP will get per 1 damage
vip_money_kill_bonus 200 //How many $ VIP will get per kill
vip_money_hs_bonus 500 //How many $ VIP will get per head shot kill
vip_sniper_active 1 //Who can buy SNIPERS? 0 - everyone, 1 - only VIP
vip_menu_active 1 //Will VIP get VIP menu? 0 - won't get the menu, 1 - will get the menu
vip_map_active 1 //VIP menu works on the maps in mapnames.txt? 0 - Yes (VIP will get VIP menu), 1 - No
vip_awp_active 1 //1 - VIP can get AWP choice; 0 - can't
vip_menu_uses 1 //How many times VIP can use VIP menu per round?
vip_awp_ct 5 //How many counter terrorist must be in a team to AWP choice show up
vip_awp_tr 5 //How many terrorist must be in a team to AWP choice show up
vip_menu_round 2 //Round from which VIP will get VIP menu
vip_awp_menu_round 3 //Round from which VIP will get AWP choice
vip_sniper_pickup 1 //0 - everyone can pickup snipers, 1 - only VIP
vip_bulletdamage_recieved 1 //enable or disable showing recieved damage
vip_bulletdamage 1 //0 - plugin disabled, 1 - show damage done, 2 - show damage done, but not via wall!
vip_models 1 //0 - VIP models off, 1 - on
vip_menu_number_color 0 //Menu number color. 0 - red, 1 - yellow, 2 - white, 3 - grey.
vip_show_list 1 //How to show /vips online list. 0 - off, 1 - in chat, 2 - in motd
Original creator: Dunn0
Remade by: Unkolix
Changelog by me, Unkolix:
v5.4.5 - MotD correction, should work perfectly now. + auto contact info + price in motd.
v5.4.4 - A new cvar to control how to show online vip list. vip_list 0/1/2. off/chat/motd. Thanks to alicx
v5.4.3 - Edited all cvars, vip_ prefix added. color_msg now changes /vips colors and vip info color.
v5.4.2 - Added a cvar for vip price show: vip_price "price"
v5.4.1 - Renewed amx_contactinfo cvar, now it will be shown when player types /vips and in want vip MotD.
v5.4.0 - If files awpmapnames.ini and mapnames.ini are missing, they are automatically created.
v5.3.9 - MotD improvement, no need for other .txt files. Example taken from: souvikdas95
v5.3.8 - Fixed double grenade throw bug, thanks to ConnorMcLeod.
v5.3.7 - Now you can control the menu number colors with menu_num_color 0/1/2/3.
v5.3.6 - Fixed C4 not showing on players back.
v5.3.5 - Not using colorchat.inc anymore, color stock instead! Small error fix. New cvar colored_text - control the printed message color.
v5.3.4 - Now changing VIP models with Fakemeta module. Tag Mismatch fix.
v5.3.3 - Grenades fix. Optimization.
v5.3.2 - VIP models added, controled by a cvar vip_models 1/0
v5.3.1 - Added error message if files awpmapnames.ini and mapnames.ini doesn't exist. Another way not to allow non VIP players
to pick up snipers, thanks to SeriousSpot.
v5.3.0 - Terrorists won't get defuse kits now. New bullet damage system (took from Sn!ff3r).
A lot of optimization and fixes, thanks to aaarnas. 2 new cvars, bulletdamage_recieved, bulletdamage
v5.2.9 - Multi-lingual "Back." menu item added.
v5.2.8 - Fixed menu choices after death and on new round.
v5.2.7 - Now you can easily the flag wich gives all the abilities. Thanks to quilhos. Line: 89
v5.2.6 - Multi-lingual want vip MotD added
v5.2.5 - Small sniper pickup fix
v5.2.4 - Now players won't lose their defuse kits after taking weapons from menu
v5.2.2 - Fixed player_menu_info error
v5.2.1 - Not using stripweapons include anymore, just to get rid of that shield bug.
v5.2 - Several fixes, optimization. New cvar to control if only VIP's can pick up snipers.
v5.1 - Fixed shield bug.
v5.0 - Multi-lingual added!
v4.9.2 - New cvar, awp_active. 1 - VIP can get AWP choice; 0 - cann't
v4.9.1 - AWP choice improvement. New Cvar, awp_menu_round, set the round from which VIP can see AWP choice.
v4.8 - Fixed VIP menu dilsplay after player death. Thanks to vitorrossi.
v4.7 - Fixed fading bug/glitch that was removing flashbang effect. Thanks to ConnorMcLeod.
v4.6 - Fixed log error. Thanks to wickedd.
v4.5 - OPTIMISATION, thanks to Backstabnoob.
v4.4 - New Cvars awp_ct and awp_tr, how mant counter-terrorists and terrorists must be in each team to get AWP choice in VIP menu
v4.3 - New feature, AWP only from sertain amount of players. Thanks to Emp`.
v4.2 - Added new Cvar, vip_menu_uses. Thanks to Erox902.
v4.1 - mapnames and awpmapnames consts are now readed from 2 files, awpmanames.cfg and mapnames.cfg. Thanks to fysiks.
v4.0 - New feature, awp an't be used in maps that are mentioned in awpmapnames const. UPDATE: awpmapnames.cfg
v3.9 - Added new menu item, AWP.
v3.8 - Improved v3.7 update. Thanks to Bugsy.
v3.7 - New feature, VIP menu can't be shown on maps which are listed in mapnames const. UPDATED: mapnames.cfg
v3.6 - Small part is rewrited with drekes help, he made stripweapons.inc
v3.5 - Fixed triple VIP message. Thanks jimaway!
v3.4 - Fixed a bug/glitch which didn't let player to have AWP, even on awp maps! Now, they can't buy it, but if they find it, they can have it.
v3.3 - Completely remade menu
v3.2 - Fixed a bug/glitch when all VIP players was getting defuse kit on all maps. Now only on maps which has bombsites and only for CT. Thanks ConnorMcLeod
v3.1 - Added commands to call VIP menu. Thanks Stereo!
Changelog by original author Dunn0:
Updates on 3.0version
Granates bug fixed, give it when round starts only. Removed hamsandwich module becouse i removed event witch was usualess.
Updates on 2.06version
Fixed C4 Planting just need'ed remove 1 simbol... Remove'd AWP pick up now only VIP can buy awp and non VIP can pick up it from ground. Fixed Bug whit menu was giving in first round I changed some events and it works just fine.
Updates on 2.05version
Was not working /wantvip , /vips command it got fixed. Was removed "pickup_active 1" cvar (couse was to much commands in registrations. Was removed some useless commands. Now changed that Only VIPS can buy awp weapons but normal players can pick up awp if VIPS drop it.
Updates on 2.04version
Menu Fixed now it always shows only from 3rd round. Nades , armor will give when u spawn not from round start. Some small fixes on Event_curweapons.
Add cvar pickup_active 1 so now if u write pickup_active 0 not vips will can pick up AWP weapons just wont be able to buy.
Updated at 2.03version
Repaired C4 bug now u can plant it
Updated at 2.02version
Repaired C4 bug
UPDATE's at 2.01version
Well i add'ed 2 new cvar's becouse people was asking it
First is "menu_active 1" so now u can turn off menu when u will one.
Second is "sniper_active 1" well if u will do it 0 all people will can buy awp.
1. Put vip.txt (you can edit it, it's multi-lingual) in to cstrike/addons/amxmodx/data/lang folder. Note: It must be encoded to "UTF-8 withouth BOM"
2. Put vip_ct and vip_tr models as shown in the .zip file. Note: You can skip this step if you don't want them (don't forget to set vip_models to 0)
3. Compile VIP.sma plugin locally and put VIP.amxx (found in scripting/compiled folder) in to cstrike/addons/amxmodx/plugins folder.
4. Add "VIP.amxx" on the end of cstrike/addons/amxmodx/configs/plugins.ini file (make a new line).
Note: awpmapnames.ini and mapnames.ini files are automatically created, you can edit them after installing the plugin.
VIP prefix with CVAR.
VIP flag CVAR
Screenshots or a video (you could help me out with this.. ;))
I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
Opening .sma clearly shows you have put together bunch of code and that you can't support it.
I say that just by having a look at plugin_init, not more.
You have to learn more before release plugins.
Yea, I know that I need to learn more. The problem is that I don't understand more than half of the tutorials, only examples with comments kinda make me understand something.
I don't know what kind of support it will need as it is almost perfect ;D
It is really far from being perfect, and you can't notice it, that confirms you need to learn more ;)
But you can keep working on this.
I already found a few mistakes. If you know any very important improvements or mistakes I done, please tell me, I would really appreciate it.
As the original authors plugin is so far behind from mine, his one is approved. But that's not a problem for me, heh.