[u][b][i]Ultimate Buyscript by [#OMEGA] - K2 V 3.00[/i][/b][/u]
[u][b]Download:[/b][/u]
http://addons.eventscripts.com/addons/view/ultimate_buyscript
[u][b]Info:[/b][/u]
Well besically I allows you purchase weapons unsing some methods. Admin can change the script settings a lot so many differnt settings are possible. See the list of features below for more information.
Please report any bugs you find.
[u][b]Requirements:[/b][/u]
[list]
[*]Eventscripts 2.0 or later
[/list]
[u][b]Installation:[/b][/u]
[list]
[*]download the files
[*]open ultimate_buyscript.cfg and change the settings
[*]copy the files to your server
[*]add "es_load ultimate_buyscript" to your autoexec.cfg
[*]reboot server (if you do not want to reboot type in server console "es_load ultimate_buyscript"
[/list]
[u][b]MapConfigs:[/b][/u]
To create map configs do the following:
[list]
[*]go into your cstrike/maps/cfg folder (create it incase it does not exist)
[*]create a .txt file with with the mapname you like the settings to be used on (for example de_dust.txt)
[*]edit the newly created file and add any cvars you like (for example ubuy_m4a1_cost 5000)
[*]save the config as .cfg file
[/list]
[u][b]Features:[/b][/u]
[list]
[*]Enable/Disable a weapon
[*]Enable/Diables a wepaon for a single team
[*]Checks for Buyzone (can be disabled)
[*]Checks for dead and alive humans
[*]Checks for Weapon Price (can be disabled and the weapon prices can be changed)
[*]Has a help/info popup included
[*]Supports 3 ways to purchase weapons; console commmands, say commands and a popup menu
[*]Checks for buytime
[*]Optimized / written in Python
[*]Displayes in most cases wrong settings ingame (So you can fix them/change them to the correct value)
[*]Multiple lanuages supported!
[list]
[*]German
[*]English
[/list]
[/list]
[u][b]Ideas:[/b][/u]
You could use it for example to have a funny match; you restict every weapon with another plugins (it just disallows to purchase weapons, but not prevents to pick them up or removes them from the game) and only enable AWP for 1 Team and the other team is only able to buy pistols.
Or for zombiemod; usually you can't buy the weapons from the other team (and it's to dangerous if you are t to wait until you get CT) so you could enable buying it.
Anti-AWP: You disable the awp with another plugin from regular purchase and set the price to 16000 so the awp will be bought very, very rarly.
[u][b]Changelog:[/b][/u]
[b]V 3.00[/b]
[list]
[*][color=#00ff00]added[/color] new convar ubuy_alive_check
[*][color=#aacc00]replaced[/color] convar ubuy_team_check_mode by ubuy_simple_team_check and ubuy_advanced_team_check
[*][color=#00ff00]added[/color] weapon flags allowing to enable/disable every check per weapon
[*][color=#00ff00]added[/color] capability of using own commands
[*][color=#00ff00]added[/color] support for public commands
[*][color=#aacc00]removed[/color] convars ubuy_console_commands, ubuy_say_commands, ubuy_popup and ubuy_help_screen
[*][color=#0000bb]adjusted[/color] the advert messages to fit these in config.ini
[*][color=#00ff00]added[/color] descriptions to the console vars have been
[*][color=#ff0000]fixed[/color] dropping weapons incase you had a primary but not a secondary
[*][color=#00ff00]added[/color] a new way of giving wepaons to players (removes old weapon)
[*][color=#0000bb]changed[/color] ubuy_drop_weapons to use the new way of giving weapons if set to 0
[*][color=#00ff00]added[/color] a check for duplicate weapons [duplicate section in strings.ini]
[*][color=#ff0000]fixed[/color] possible problem with purchasing helmet
[*][color=#00ff00]added[/color] weapon restrictions
[/list]
[b]V 2.01[/b]
[list]
[*]fixed addon info
[*]fixed a spelling error in german translation file
[*]script now uses langlib; everyone will have the message displayed in their language if aviable
[*]-> es_ubuy_german_db.txt and es_ubuy_english_db.txt unnecessary now (can be deleted)
[*]-> ubuy_language has been removed
[*]fixed a minor error with display of weapon names if you had not enough money for purchase
[*]fixed error messages if a variable nesscessary for the welcome messages was set wrong
[*]es_ubuy_internal_db.txt is unnecessary now (can be deleted)
[*]fixed a error in the help menu (used wrong text psettings_enabled in english lng file)
[*]german messages are now using "ä,ö,ü,ß"
[*]redone the popup creation; script size is massivly reduced (by more than 33%!!)
[*]you can open the main helpmenu from the weapon settings menu now
[/list]
[b]V 2.00[/b]
[list]
[*]added error message for ubuy_drop_weapons
[*]config file for settings
[*]rewritten in python (code size is reduced by more than 50 %)
[*]fixed message when purchasing vest
[*]fixed a possible bug which could lower somebody's armor to 100 in case of purchasing vest
[*]fixed a possible buy which could lower somebody's money by 1000 in case of purchasing vesthelm and having more than 100 armor
[*]fixed the payback calculation of vesthelm in case the player already has 100 armor or a helmet
[*]made keygroups a bit smaller; ubuy prefix has been removed from the keygroups
[*]fixed a bug which show the purchase message 2 times for kevlar
[*]added option to disable/enable buytime check
[*]added info to the help screen about the new buytime check
[*]some spelling errors corrected in the language files
[*]fixed a bug which changed a litte part of the help screen into english language
[/list]
[b]V 1.01b[/b]
[list]
[*]now correctly checks for the player weapon and drops it.
[/list]
[b]V 1.01a[/b]
[list]
[*]players automatically get the weapons now if the option is selected in the pluginsettings regarless of the client's fast weaponswitch settings
[/list]
[b]V 1.01[/b]
[list]
[*]Multi Lanuage Support (German & English so far),
[*]now outputs a error if a specific weapon settings is wrong,
[*]all buy_ prefixes changed to ubuy_,
[*]fixed a serious spelling error which caused a problem with specific weapons enabled/disabled,
[*]fixed a serious error causing to buy false weapons/output wrong error messages (popup weaponmenu),
[*]fixed the error(s) with the typed weaponnames [no message & weapon 0 is restricted],
[*]added specific weapon settings info to the helpmenu,
[*]added "back to mainmenu" and "close" buttons and to the weapomenu,
[*]added headlines for the weaponmenu categories,
[*]added automatically weapondrop (see the config for more info)
[*]added kevlar (+ helmet) to the equipment list
[/list]
[b]V 1.00[/b]
[list]
[*]Inital Release
[/list]
[u][b]Planned for newer vesions:[/b][/u]
[list]
[*]Admin menu to change settings ingame [cancelled/on hold]
[*]maybe some custom "items" like health or armor
[*]smaller/more optimized code
[*]bugfixes
[/list]
Installation
If you are upgrading from a older version:
[list]
[*]Upload all the files except the config (since you might want to keep your settings)
--> however, I recommend using the new config due to many changes.
[*]This can be delted from config:
[code]
// Enables or disables purchase with Console Commands
// ubuy [weaponname]
ubuy_console_commands 1
// Enables or disables purchase with Chat Commands
// say !ubuy [weaponname]
// say_team !ubuy [weaponname]
ubuy_say_commands 1
// Enables or disables purchase with the Popupmenu
// umenu
// say !umenu
// say_team !umenu
ubuy_popup 1
[/code]
[*]Replace this in the config:
[code]
//
// 0 = Disabled
// 1 = Simple Teamcheck
// 2 = Advanced Teamcheck (checks for each weapons seperatly)
ubuy_team_check_mode 2
[/code]
with
[code]
// --------------------------------------------------------
// Team Check Settings
//
// The following enables or disables the simple teamcheck.
ubuy_simple_team_check 1
// The following enables or disables the advanced teamcheck.
ubuy_advanced_team_check 1
[/code]
[*]Add this to the config:
[code]
// --------------------------------------------------------
// Weapon Restriction
//
// The following prevents the weapon pickup (even if purchased though ubuy)
// Seperate every weapon with a comma.
ubuy_restrictions ""
// Path to the sound which you want to play (in cstrike/sound/ dir)
// Leave empty to disable
ubuy_restriction_sound "buttons/weapon_cant_buy.wav"
// Enable this incase the sounds needs to be downloaded
ubuy_restriction_sound_downloadable 0
// Enables or disables the check whether the player has the weapon already
ubuy_duplicate_check 1
// --------------------------------------------------------
// Weapon Flags
//
// Add up the numbers of the checks you would like to have
// to enable them. They will be done in the same order as
// below. Use -1 to use the global check value.
//
// 0 = No Checks
// 1 = Enabled Check
// 2 = Alive Check
// 4 = Simple Team Check
// 8 = Advanced Team Check
// 16 = Buytime Check
// 32 = Buyzone Check
// 64 = Duplicate Check
// 128 = Money Check
//
// Example:
// You want to check for enabled weapons, whether the player is
// alive and whether the player has enough money for the glock
// ubuy_glock_flags 67 (= 1 + 2 + 64)
// Pistols
ubuy_glock_flags -1 // "Flags of the 9x19 MM Sidearm"
ubuy_usp_flags -1 // "Flags of the KM .45 Tactical"
ubuy_p228_flags -1 // "Flags of the 228 Compact"
ubuy_deagle_flags -1 // "Flags of the Night Hawk .50c"
ubuy_fiveseven_flags -1 // "Flags of the ES Five-Seven"
ubuy_elite_flags -1 // "Flags of the .40 Dual Elites"
// Shotguns
ubuy_m3_flags -1 // "Flags of the Leone 12 Gauge Super"
ubuy_xm1014_flags -1 // "Flags of the Leone YG1265 AUTO Shotgun"
// SMGs
ubuy_tmp_flags -1 // "Flags of the Schmit Machine Pistol"
ubuy_mac10_flags -1 // "Flags of the Ingram MAC-10"
ubuy_mp5navy_flags -1 // "Flags of the KM SUB-Machine Gun"
ubuy_ump45_flags -1 // "Flags of the KM UMP45"
ubuy_p90_flags -1 // "Flags of the ES C90"
// Rifles
ubuy_galil_flags -1 // "Flags of the IDF Defender"
ubuy_famas_flags -1 // "Flags of the Clarion 5.56"
ubuy_ak47_flags -1 // "Flags of the CV-47"
ubuy_scout_flags -1 // "Flags of the Schmit Scout"
ubuy_m4a1_flags -1 // "Flags of the Maverick M4A1 Carabine"
ubuy_sg552_flags -1 // "Flags of the Krieg 552"
ubuy_aug_flags -1 // "Flags of the Bullpup"
ubuy_sg550_flags -1 // "Flags of the Krieg 550 Commando"
ubuy_awp_flags -1 // "Flags of the Magnum Sniper Rifle"
ubuy_g3sg1_flags -1 // "Flags of the D3/AU1"
// Machine Guns
ubuy_m249_flags -1 // "Flags of the M249"
// Equipment
ubuy_vest_flags -1 // "Flags of the Kevlar"
ubuy_vesthelm_flags -1 // "Flags of the Kevlar + Helmet"
ubuy_flashbang_flags -1 // "Flags of the Flashbang"
ubuy_hegrenade_flags -1 // "Flags of the HE Grenade"
ubuy_smokegrenade_flags -1 // "Flags of the Smoke Grenade"
ubuy_nvgs_flags -1 // "Flags of the Nightvision"
ubuy_defuser_flags -1 // "Flags of the Defusal Kit"
[/code]
[/list]
Version Notes For 3.00
Updated on: 2009-03-22 15:06:28 EST by Omega_K2 (View Zip Contents)
[b]Version 3.00 Changes:[/b]
[list]
[*][color=#00ff00]added[/color] new convar ubuy_alive_check
[*][color=#aacc00]replaced[/color] convar ubuy_team_check_mode by ubuy_simple_team_check and ubuy_advanced_team_check
[*][color=#00ff00]added[/color] weapon flags allowing to enable/disable every check per weapon
[*][color=#00ff00]added[/color] capability of using own commands
[*][color=#00ff00]added[/color] support for public commands
[*][color=#aacc00]removed[/color] convars ubuy_console_commands, ubuy_say_commands, ubuy_popup and ubuy_help_screen
[*][color=#0000bb]adjusted[/color] the advert messages to fit these in config.ini
[*][color=#00ff00]added[/color] descriptions to the console vars have been
[*][color=#ff0000]fixed[/color] dropping weapons incase you had a primary but not a secondary
[*][color=#00ff00]added[/color] a new way of giving wepaons to players (removes old weapon)
[*][color=#0000bb]changed[/color] ubuy_drop_weapons to use the new way of giving weapons if set to 0
[*][color=#00ff00]added[/color] a check for duplicate weapons [duplicate section in strings.ini]
[*][color=#ff0000]fixed[/color] possible problem with purchasing helmet
[*][color=#00ff00]added[/color] weapon restrictions
[/list]