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] Steam Announce


  • 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 06.02.2012 17:39

Steam Announce
A simple plugin that prints the player name and steam id only to chat for all to see. It is useful for cheaters (getting their Steam ID before they start name changing) and/or rule breakers (who leave).

This is similar to Connect Annouce and the like except this is stripped right down for just the player name and their steam id.

This is my first self coded plugin and am new to sourcepawn, so will take any advice and criticisms. I thought with the influx of cheaters lately that use name changers etc., a lightweight plugin liek this could come in handy.

Installation
steamannounce.sp -> addons/sourcemod/scripting
steamannounce.smx -> addons/sourcemod/plugins

Requires no restart, just type in to console

rcon sm plugins load steamannounce

CVars
Just one;

sm_steam_announce_version

This will just show the version, 1.0.


Example
[CON] Rizla : STEAM_0:1:23866547 (for when I connect)

[DC] Rizla : STEAM_0:1:23866547 (for when I disconnect)

I doubt this will ever need updating for bug fixes etc. (unless ive made an error), but i will try to provide any support required.

Tested in Counter-Strike Source, don't see any reason it wouldn't work in other source based games (correct me if im wrong)

More than welcome to use the code, edit it and so on and so forth.

Attached Files Dołączona grafika steamannounce.smx (2.9 KB) Dołączona grafika Get Plugin or Get Source (steamannounce.sp - 1.4 KB)

Wyświetl pełny artykuł




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

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