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] Commander Status - API (18.03.2012)


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

Napisano 18.03.2012 22:52


Commander Status - API Author: Ex1ne
Version: 2.3



Description:

- At the start of the round, a vote menu with all the CT's listed will be displayed to everyone.
- The winner of the vote will then receive the commander stats
- However, if there is only 1 CT, he get's the commander status immediately


How to instal:<a href="#top">[top]
- The sma file must be compiled locally and the output .amxx file will go in 'addonsamxmodxplugins' folder.


To do:[top]
- Nothing, so far


How to use api:[top]
- At the top of your plugin add :

PHP Code:

native is_user_commander(const client)

- Now you can to check's, such as

PHP Code:

if(is_user_commander[id])


Customization:[top]
- This also allows prefixes to the names at the vote, so if you have the TAG_ADMIN flag, you name at the vote will be: [Admin] *name*
- The same with "member", if you have the TAG_MEMBER flag, your name will be: [Member] *name*
- And with TAG_VIP, if you have that your name will be: [VIP] *name*
- The TAG_* can be changed at the top if the plugin.
Dołączona grafika

Credit's to: [top]
- Emp for the new menus tut
- ShadowZ for testing
- DownXx for testing

Attached Files Dołączona grafika Get Plugin or Get Source (commander.sma - 5.8 KB)

Wyświetl pełny artykuł




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

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