RSSy MYGO.pl Opublikowano Październik 10, 2022 o 14:47 RSSy Udostępnij Opublikowano Październik 10, 2022 o 14:47 Description:Huge re-design and additions to the original work by (-DR-)GrammerNatzi. This plug-in allows clients to gain points through various accomplishments and use them to buy items and health/ammo refills. It also allows admins to gift the same things to players and grant them god mode What's new?Integration with AutoRespawn, Special Ammo, DragoStats, Revive & CPR plugins. Unique ability: Witcher Shove Unique ability: Shield MySQL database Transfer coins Items: propane tank, oxygen tank and gascan Balanced, to prevent cheating Points for deal damage to tank and 1-3 places bonus for damage dealers Added Resurrection (respawn) Black Friday Menu re-design Max items per-round limitation Aliases for commands Translation into Russian API Settings (ConVars):Can be found in: cfg/sourcemod/L4DPoints.cfg PHP Code: // Minimum players to allow earn points. points_min_players "3" // How many points for killing a certain number of infected points_amount_infected "2" // How many killed infected does it take to earn points? Headshot and minigun kills can be used to rank up extra kills. points_amount_infectednum "25" // How many points for killing a special infected. points_amount_specialinfected "1" // How many points for healing someone points_amount_heal "5" // How many points for reviving someone points_amount_revive "3" // How many points for rescuing someone from a closet points_amount_rescue "2" // How many points for rescuing someone with cpr points_amount_cpr "10" // How many points for rescuing someone with cpr + medkit pointsrescuemedkitcpr "25" // Do we want the plugin to advertise itself? 1 for short version, 2 for long, 0 for none. points_advertising "1" // How many points you get for killing a witch points_amount_witch "5" // How many extra points you get for killing a witch in one shot points_amount_witch_instakill "3" // How many stat points for rescuing someone with cpr + medkit ptstat_amount_cpr_medkit "5" // How many stat points for rescuing someone with cpr ptstat_amount_cpr "5" // How many stat points for rescuing someone from a closet ptstat_rescue "1" // How many extra kills are survivors awarded for scoring headshots? 0 = None points_amount_extra_headshotkills "1" // How many extra kills are survivors awarded for scoring minigun kills? 0 = None points_amount_extra_minigunkills "1" // How many points infected get for hurting survivors a number of times points_amount_infected_hurt "2" // How many points you get for incapacitating a survivor points_amount_infected_incapacitation "5" // How many points you get [as a smoker] when you pull a survivor points_amount_infected_pull "1" // How many points you get [as a hunter] when you pounce a survivor points_amount_infected_pounce "1" // How many points you get [as a boomer] when you vomit/explode on a survivor points_amount_infected_vomit "1" // How many seconds before the optional advertisement is displayed again points_advertising_ticks "80" // Reset points when a certain amount of rounds end? Resets at end of campaign in coop, a defined amount rounds in versus, and every round in survival points_reset_round "0" // How many rounds until reset in versus? points_reset_round_amount "2" // How many points each 1000 hp of killed tank costs points_price_tank_hp "1" // How many points take first tank damage dealer points_price_tank_hp_first "10" // How many points take second tank damage dealer points_price_tank_hp_second "5" // How many points take third tank damage dealer points_price_tank_hp_third "3" // How many points a shotgun costs points_price_shotgun "20" // How many points a sub-machine gun costs points_price_smg "15" // How many points a rifle costs points_price_rifle "30" // How many points a hunting rifle costs points_price_huntingrifle "30" // How many points an auto-shotgun costs points_price_autoshotgun "25" // How many points a pipe-bomb costs points_price_pipebomb "25" // How many points a molotov costs points_price_molotov "25" // How many points an extra pistol costs points_price_pistol "5" // How many points a bottle of pills costs points_price_painpills "50" // How many points a medkit costs points_price_medkit "50" // How many points an ammo refill costs points_price_refill "20" // How many points a heal costs points_price_heal "60" // How many points a resurrection costs points_price_respawn "200" // How many points a witcher shove costs points_price_witchershove "50" // How many points a shield costs points_price_shield "50" // How many points an oxygentank costs points_price_oxygentank "5" // How many points a gascan costs points_price_gascan "10" // How many points a propanetank costs points_price_propanetank "15" // How many points does incendiary ammo cost? points_price_incendiary_ammo "40" // How many points does bursting ammo cost? points_price_bursting_ammo "60" // How many points does armor piersing ammo cost? points_price_piercing_ammo "50" // How many points it takes to end it all points_price_infected_suicide "4" // How many points a heal costs (for infected) points_price_infected_heal "5" // How many points a boomer costs points_price_infected_boomer "10" // How many points a hunter costs points_price_infected_hunter "5" // How many points a smoker costs points_price_infected_smoker "7" // How many points a tank costs points_price_infected_tank "35" // How many points a witch costs points_price_infected_witch "25" // How many points a mini-event/mob costs points_price_infected_mob "18" // How many points a mega mob costs points_price_infected_mob_mega "23" // How many tanks can be spawned in a round points_limit_tanks "1" // How many witches can be spawned in a round points_limit_witches "2" Forwards | API: Spoiler PHP Code: /** * Get number of money earned during current round. * * @param iClient Client index given. * * @error Wrong number of arguments. * @return Money earned during current round. */ native int GetMoneyEarned(int iClient); Supported games: - L4D1 - L4D2 Requirements: - adminmenu (included in SourceMod) - clientprefs (included in SourceMod) - geoip (included in SourceMod) - (optional) Special Ammo (fork by Dragokas) - (optional) Auto-Respawn by Dragokas - (optional) DragoStats by Dragokas - (optional) Emergency Treatment With First Aid Kit And CPR (Fork by Dragokas) Note: (optional) special_ammo.inc, autorespawn.inc and hx_stats.inc should be added to "include" folder to compile this plugin with a complete functionality. Installation: - Fulfill all the requirements above. - Install MySQL and append configuration in file: configs/databases.cfg Code: "l4d_shop" { "driver" "mysql" "host" "<replace by host name>" "database" "<replace by database name>" "user" "<replace by user name>" "pass" "<replace by password>" } - Copy contents of attached archive to your server as is: to addons/sourcemod. ChangeLog Note: there are other updates in this fork, not listed here. 1.19 (fork) - Disabled witch points when witch begin to hunt 1.18 (fork) - Fixed possible zeroing of Points - added bool flag whether points is loaded. Zero points is now converted to -1 when saved. - Added logging of saved points to "logs/shop_points.log" - "logs/shop.log" is renamed to "logs/shop_transfer.log" - Removed "pointsconfirm" command. - Made most command access by ADMIN_ROOT only. - sm_savepoints is now accessible to admin only. - Added save points on plugin unload. 1.17 (fork) - Added Witcher Shove upgrade - Added Shield upgrade 1.16 (fork) - Added integration with hx_stats 1.15 (fork) - Added "Hot butt", "Crash butt" 1.14 (fork) - Added Resurrection. 1.13 (fork) - Added native of earned money (for statistics plugin) 1.12 (fork) - special ammo are replaced by 3 special ammo from AtomicStryker's plugin - logging of money transfer operations - disabled some hooks in non-versus mode. 1.11 (fork) - added donation info in "bank operations" 1.10 (fork) - removed points for tank kill and tank burning - added points for deal damage to tank and 1-3 places bonus for damage dealers. - added "back" button that redirects to sm_menu 1.9 (fork) - Some fixes on client's cookie loading/saving (some clients expirienced random reset of coins). - Added new events for points - Added logging the count of coins on client disconnect to logs/shop.log file 1.8 (fork) - Converted to a new syntax and methodmaps 1.7 (fork) - Menu is now not closed when you bye something 1.6 (fork) - PLAYERS replaced by MAXPLAYERS. - for loops max indeces replaced by MaxClients. - fixed cache saving/loading 1.5 (fork) - Added coins cache (saving) on client restart 1.4 (fork) - added "Bank operations" menu - added "transfer coins" 1.3 (fork) - menu has been reorganized into 4 branches - added propane tank, oxygen tank and gascan - added simple opportunity to change position of menu items Credits: - @(-DR-)GrammerNatzi - author of the original work DonateDonates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often: - Patreon - BitCoin - Ю.Money P.S.: - It's my private plugin written for myself and my Bloody Witch team. - Project and updates discontinued. Don't ask. Attached Files Shope-Forum.zip (60.3 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi