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

[forums.alliedmods.net] Donator Plugin (1.0.1)


  • 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 488
  • Lokalizacja:AMXX.PL
Offline

Napisano 30.01.2012 23:34

Donator

This plugin gives your donators a little extra by granting them HP, armor, speed, glow, etc. It is a port of the original AMX Mod X plugin to SourceMod.

It was sponsored by the California-based Kung Fu Comedy community.

Configuration

You can configure different donation ranks and assign different players to them. The ranks config file (configs/donator/ranks.txt) looks like:



Code: "Ranks"
{
"Starter"
{
"level" "1"
"health" "100"
"armor" "100"
"glow" "255"
"speed" "1.0"
"gravity" "1.0"
}

"Medium"
{
"level" "2"
"health" "110"
"armor" "110"
"glow" "230"
"speed" "1.1"
"gravity" "0.9"
}

...
}Any admin with the RCON flag access can add donators and set their rank through his admin menu.

The donators list file (configs/donator/donators_simple.ini), is fully compatible to the original plugin file and is very similar to admins_simple.ini:



Code: //
// READ THIS CAREFULLY!
//
// For each donator, you need two settings:
// "identity" "ranklevel"
//
// For the Identity, you can use a SteamId.
// For the Rank level, you can use an integer value that represents the rank level.
//
// So if you have the following rank in configs/donator/ranks.txt:
//
// "Hardcore Donator"
// {
// "level" "8"
// "gravity" "1.5"
// ...
// }
//
// And you want to make STEAM_0:X:XXXXXXX a hardcore donator, type 8 in the rank level.
//
////////////////////////////////
// Examples: (do not put // in front of real lines, as // means 'comment')
//
// "STEAM_0:1:1634871" "1"
// "STEAM_0:0:0512161" "2"
// "STEAM_0:0:1451571" "8"
//
//////////////////////////////In the near future I'll add MySQL support.

Cvars
  • sm_donator_gravity - Sets whether gravity boost is enabled for donators.
  • sm_donator_health - Sets whether health boost is enabled for donators.
  • sm_donator_glow -Sets whether glow is enabled for donators.
  • sm_donator_armor - Sets whether armor boost is enabled for donators.
  • sm_donator_speed - Sets whether speed boost is enabled for donators.
Change Log

1.0.1 (31 January 2012)
  • Changed armor default value to be the HP value.
1.0.0 (28 January 2012)
  • Initial Release
Download

The plugin and the config files, as well as the full source code are available on the following zip file:

http://dl.dropbox.co...nator-1.0.1.zip

Wyświetl pełny artykuł




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

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