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

HELP


  • Zamknięty Temat jest zamknięty
4 odpowiedzi w tym temacie

#1 Nestore

    Życzliwy

  • Użytkownik

Reputacja: 0
Nowy

  • Postów:38
  • Lokalizacja:dom bez klamek i okien. ; )
Offline

Napisano 11.02.2009 19:33

Witam . Wiec tak szukam 3 pluginów :

1. Potrzebny mi do serwera DeathRun ze *Dead* widzi to co pisza Zyjacy a Zyjacy to co *Dead*

2. Plugin ktory rezerwuje zawsze 1 slota na serwerze jezeli serwer jest 20 slotowy to max wejdzie 19 zwyklych userow a 20 slot dla admina.

3. Plugin przy ktorym na serwerze pojawiaja sie napisy na serwerze np ~Kontakt z Head Adminem ~Admin techniczny itd . ; )
  • +
  • -
  • 0

#2 igor2-10

    Wszechwiedzący

  • Użytkownik

Reputacja: 111
Zaawansowany

  • Postów:525
  • Steam:steam
  • Lokalizacja:Byczyna
Offline

Napisano 11.02.2009 19:36

2.To się ustawia w amxx.cfg
amx_reservation 0

Gdzie 0 tam ustawiasz ile slotów ma być zarezerwowanych oraz
amx_hideslots 0

Tam ustawiasz czy sloty mają być ukryte
  • +
  • -
  • 0

#3 Gość__*

  • Gość

Reputacja: 0

Offline

Napisano 11.02.2009 19:36

2. Plugin ktory rezerwuje zawsze 1 slota na serwerze jezeli serwer jest 20 slotowy to max wejdzie 19 zwyklych userow a 20 slot dla admina.

Wejdź w amxx.cfg i poszukaj:
// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0
Na:
amx_reservation 1

3. Plugin przy ktorym na serwerze pojawiaja sie napisy na serwerze np ~Kontakt z Head Adminem ~Admin techniczny itd . ; )

Zobacz: http://amxx.pl/viewtopic.php?t=283
Możesz także dodać napisy w HUD, wejdź w amxx.cfg i znajdź:
// Frequency in seconds and text of scrolling message
//
// Default value: "Welcome to %hostname% -- This server is using AMX Mod X" 600
amx_scrollmsg "Gramy, bawimy sie dzięki GamesNet.pl" 600

// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Welcome to %hostname%" "000255100"
//                 "This server is using AMX ModXnVisit http://www.amxmodx.org" "000100255"
amx_imessage "Witamy na %hostname%" "000100255"


#4 Nestore

    Życzliwy

  • Autor tematu
  • Użytkownik

Reputacja: 0
Nowy

  • Postów:38
  • Lokalizacja:dom bez klamek i okien. ; )
Offline

Napisano 11.02.2009 20:12

A plugin dzięki czemu wszyscy gracze beda mogli widziec co pisze Dead czy Live ?

( Kur3k thx Wielki + Pomogl : ) )
  • +
  • -
  • 0

#5 Gość__*

  • Gość

Reputacja: 0

Offline

Napisano 11.02.2009 21:18

Zobacz:
#include <amxmodx>
#include <amxmisc>
#include <engine>

// Counter for the SayText event.
new count[32][32]     
new g_voice_status[2]

public catch_say(id)
{
	new reciever = read_data(0) //Reads the ID of the message recipient
	new sender = read_data(1)   //Reads the ID of the sender of the message
	new message[151]            //Variable for the message
	new channel[151]
	new sender_name[32]

	if (is_running("czero")||is_running("cstrike"))
	{
   		read_data(2,channel,150)
	   	read_data(4,message,150)
   		get_user_name(sender, sender_name, 31)
	} else {
	        read_data(2,message,150)
	}
   
	// DEBUG. 
	// console_print(0, "DEBUG MESSAGE: %s", message)
	// console_print(0, "DEBUG channel: %s", channel)
	// console_print(0, "DEBUG sender: %s, %i", sender_name, sender)
	// console_print(0, "DEBUG receiver: %i", reciever)
   
   	//With the SayText event, the message is sent to the person who sent it last.
   	//It's sent to everyone else before the sender recieves it.

	// Keeps count of who recieved the message
   	count[sender][reciever] = 1          
	// If current SayText message is the last then...
   	if (sender == reciever)
	{      
      		new player_count = get_playersnum()  //Gets the number of players on the server
      		new players[32] //Player IDs
      		get_players(players, player_count, "c")

      		for (new i = 0; i < player_count; i++) 
		{
			// If the player is an admin...
         		if (get_user_flags(players[i]) & ADMIN_LEVEL_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/cool.gif' class='bbc_emoticon' alt='B)' />
			{     
				// If the player did not recieve the message then...
            			if (count[sender][players[i]] != 1)
				{              
               				message_begin(MSG_ONE, get_user_msgid("SayText"),{0,0,0},players[i])
               				// Appends the ID of the sender to the message, so the engine knows what color to make the name.
               				write_byte(sender)
               				// Appends the message to the message (depending on the mod).
					if (is_running("czero")||is_running("cstrike"))
	       				{
   						write_string(channel)
	       					write_string(sender_name)
	       				}
               				write_string(message)
               				message_end()
            			}
         		}
         		count[sender][players[i]] = 0  //Set everyone's counter to 0 so it's ready for the next SayText
      		}
   	}
	
   	return PLUGIN_CONTINUE
}

public plugin_init(){
   register_plugin("AdminListen","2.3x","/dev/ urandom")
   register_srvcmd("amx_adminlisten_voice","voice_status")
   register_event("SayText","catch_say","b")
   return PLUGIN_CONTINUE
}

public plugin_modules(){
   require_module("engine") 
}

// *********************
// VoiceComm Stuff
// *********************

public client_infochanged(id)
{
   if ((get_user_flags(id) & ADMIN_LEVEL_Z) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public client_connect(id)
{
   if ((get_user_flags(id) & ADMIN_LEVEL_Z) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public voice_status(){
   read_argv(1,g_voice_status,1)
   new player_count = get_playersnum()
   new players[32] //Player IDs
   get_players(players, player_count, "c")
   for (new i = 0; i < player_count; i++) {
      if ((get_user_flags(players[i]) & ADMIN_LEVEL_Z)){         
         if (equal(g_voice_status,"0")) set_speak(players[i], 0)
         if (equal(g_voice_status,"1")) set_speak(players[i], 4)
      }
   }
}
Zmieniłem:

ADMIN_LEVEL_B

Na:

ADMIN_LEVEL_Z

Z - tą flagę ma każdy gracz ale gracze co mają admina, rezerwacje nie mają Z :-)




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

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