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

Protect Names


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

Napisano 03.07.2012 17:18

Protect Namesv0.0.1, by ExolentDescription:This plugin allows you to protect player names so that other players cannot fake that name.Don't get this idea confused with Restrict Names.That plugin blocks names from being used at all, whereas this one protects names to specified players.This already exists in the default AMXX, but it requires you to set passwords for players and doesn't allow them to be matched to a SteamID among other options that this plugin offers.This plugin does not deal with passwords (if you want passwords, just use AMXX's method).It allows you to restrict a name based on one of the following:

  • SteamID
  • IP
  • admin flags
For matching a name to be restricted, you can match it by:
  • equaling the name
  • containing the name (like a tag for example)
  • or a regular expression
Requirements:
  • AMX Mod X 1.8.0 or higher
  • RegEx module
  • Fakemeta module
Cvars:
  • protect_name_punish 0/1- 0 = Rename player to replacement name from file- 1 = Execute command from protect_name_command cvar (kick or ban).- Default: 0
  • protect_name_command "command"- Command executed on server when player is punished (when protect_name_punish is 1)- Allows formatting with variables:
  • %name% - The name that player tried using
  • %steamid% - The SteamID of the player
  • %userid% - The userid of the player
  • %ip% - The IP of the player
  • %reason% - The reason from protect_name_reason cvar
- To use double quotes in this cvar, use ' and they will be replaced to "- Default: "kick %userid% '%reason%'"
  • protect_name_reason "reason"- Reason printed to player in chat if no punishment is taken.- Allows formatting with variables:
  • %name% - The name that player tried using
  • %steamid% - The SteamID of the player
  • %userid% - The userid of the player
  • %ip% - The IP of the player
- Default: "%name% is protected and you are not allowed to use it!"File Setup:File is located at addons/amxmodx/configs/protect_names.iniFormat of the file is as follows: Code: // Lines starting with // or ; are comments and are ignored in the file; This is a comment, too!// // File format:// "match type" "string to match" "restrict type" "restricted string" "replacement"// // Available match types:// equal// equali// contain// containi// regex/flags (eg. regex/i)// // When using "regex" match type, the pattern goes in the match string.// // Available restrict types:// steam, steamid// ip, address, ipaddress// flag, flags// // Remember, match types and restrict types are case insensitive, so RegEx and SteamID will also work.// "containi" "Exolent" "steamid" "STEAM_0:1:23456" "Imposter alert!""regex/i" "j(uke)?Nr(un)?" "flags" "m" "Fake member"Changelog:
  • 0.0.1- Initial release
Attached Files Dołączona grafika Get Plugin or Get Source (protect_names.sma - 9.7 KB)

Wyświetl pełny artykuł




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

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