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

Modular Advertisements


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

Napisano 04.09.2014 00:21

Modular Advertisements

Description:

Yes, another advertisements plugin, yippy. It is pretty much a copy pasterino witth some changes that offer some interesting oppurtunities for plugin developers. Several server have issues where their chat is spammed with different advertisements from different plugins. This update fixes that issue.

Control Variables:
  • sm_advertisements_enabled (default: 1) Enable/Disable the plugin
  • sm_advertisements_file (default: advertisements.txt) Advertisements configuration file
  • sm_advertisements_interval (default: 30) Advertisements interval
Natives:


Code: /**
* Register an advertisement
*
* @param strType Type of advertisement
* @param strText Text to display
* @param strFlags Required admin flag(s) to view the advertisement
* @noreturn
*/
native RegisterAdvertisement(String:strType[], String:strText[], String:strFlags[] = "none");

// Example
RegisterAdvertisement("S", "{olive}Type !forum to visit our website!");Forwards:


Code: /**
* Called when the advertisement configuration file is loaded
*
* @noreturn
*/
forward OnAdvertisementsLoaded(client);Configuration: (default: advertisements.txt)


Code: "Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}[email protected]"
}
"2"
{
"type" "T"
"text" "www.domain.com"
"flags" "a"
}
}Version Log:
  • Version 1.0
  • Initial Release
Installation:
1) Add the files included in this post to their folders relative to sourcemod/addons
  • advertisements.smx to plugins
  • advertisements.txt to configs
My Plugins
intox Gaming

Attached Files Dołączona grafikaadvertisements.smx (18.0 KB) Dołączona grafikaadvertisements.inc (854 Bytes) Dołączona grafikaGet Plugin or Get Source (advertisements.sp - 10.3 KB) Dołączona grafikaadvertisements.txt (971 Bytes)

Wyświetl pełny artykuł




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

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