Jump to content

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

Posted Image Posted Image

Guest Message by DevFuse
 

Photo

Admin Custom Votes


  • You cannot start a new topic
  • Please log in to reply
No replies to this topic

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7,515
  • Lokalizacja:AMXX.PL
Offline

Posted 17.11.2011 08:06

Admin Custom Votes(1.0.0)
Description: Create a custom vote and execute the result.

Cvars(default values shown):
sm_acvote_version "1.0.0"
sm_acvote_log "1" - Enable/Disable(1/0) Logging custom admin votes


Commands:
sm_acvote "command" "title" "choice1" "choice1title" "choice2" "choice2title" "choice3" "choice3title" "choice4" "choice4title" "choice5" "choice5title" - Default Vote Flag(k)
--You must have at least the command, title, choice1, choice1title, choice2, and choice2title to create a vote
Note: The command is executed on the admin who created the vote, so if the admin doesn't have access to the command it won't work.



Examples:
sm_acvote "sm_cvar mp_disable_respawn_times" "Disable Respawn Time" 1 Yes 2 No

sm_acvote "sm_cvar sv_gravity" "Set gravity to?" 800 Normal 400 Half 1600 Double 0 None

And just for sport :wink:: sm_acvote "sm_kick" "Give a cool present to everyone!" "@!me Suprise! How do you like the cool present?" Yes "" No




Changelog:
Code: Version 1.0.0 - November 17, 2011
* Initial Release
Attached Files Posted Image Get Plugin or Get Source (Admin Custom Votes.sp - 3.6 KB)

Wyświetl pełny artykuł




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users