Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[CS:S] Grenade Pack 2


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 492
  • Lokalizacja:AMXX.PL
Offline

Napisano 16.11.2011 05:38

DESCRIPTION:
Allows players and VIPs to be able to carry more than the normal 1 hegrenade, 2 flashbangs, and 1 smoke grenade.

You can set VIP players to be able to carry more than regular players with the CVars.

WHY THIS PLUGIN?
There is Greyscale's Grenade Pack V1.5 but his only allows players to carry extra hegrenades. A request was put in that thread asking for the ability to allow players to carry more flashes and smokes, but he said, at the time, it may not be possible.

Valve, as you may or may not know, finally fixed the ammo_<weapon>_max cvar to work with hegrenades, flashbangs, and smoke grenades. This is cool, but that means that if you change them to 4 or something, then EVERY player can have 4.

I thought it would be a good idea to implement a plugin to allow VIP players to have more than the normal and limit the regular players to the normal (or maybe slightly enhanced).

I didn't write this plugin to fully restrict players from not being able to buy nade type weapons, but if desired, I could add that (the change would be to set the CVar to 0 to restrict that type of nade).

CVARS: Code: sm_grenadepack2_announce 3
sm_grenadepack2_enabled 1
sm_grenadepack2_flashbang 2
sm_grenadepack2_flashbang_vip 4
sm_grenadepack2_hegrenade 1
sm_grenadepack2_hegrenade_vip 3
sm_grenadepack2_smokegrenade 1
sm_grenadepack2_smokegrenade_vip 2ammo_hegrenade_max is tied to sm_grenadepack2_hegrenade_vip
ammo_smokegrenade_max is tied to sm_grenadepack2_smokegrenade_vip
ammo_flashbang_max is tied to sm_grenadepack2_flashbang_vip

If you set the regular (non _vip) cvars to something higher than the VIP cvar, the VIP cvar will be adjusted to match the regular cvar
if you set the VIP cvar to something lower than the regular (non _vip) cvar, the regular cvar will be adjusted to match the VIP cvar

REQUIREMENTS:
SDKHooks

SUGGESTED PLUGINS:
Updater

SPECIAL THANKS:
Greyscale for the original Grenade Pack

INSTALLATION:
To install this plugin, copy the .smx file to your "cstrikeaddonssourcemodplugins" folder; copy the .txt file to your "cstrikeaddonssourcemodtranslations" folder. Change the map on the server or restart it.
A configuration file (GrenadePack2.plugin.cfg) in your "cstrikecfgsourcemod" folder will be created. Edit it to your liking (just don't have the _vip cvars less than the corresponding regular ones). If you make changes to the config file they will take affect on the next map change or server restart.

This plugin is Updater enabled so if there are any updates it will automatically be applied if you have Updater set to auto-install.

Feel free to add your own translations to the translation file, or reply here and I'll add them.

You'll either have to compile the plugin yourself or download the attached .smx file because the web compiler will not compile it due to the includes.
Attached Files Dołączona grafika Get Plugin or Get Source (GrenadePack2.sp - 17.1 KB) Dołączona grafika GrenadePack2.smx (7.0 KB) Dołączona grafika grenadepack2.phrases.txt (2.4 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych