Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

problem z adminami


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

#1 Akord3on

    Zaawansowany

  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:00

witam.

Zrobilem serwer, dodalem siebie jako admina... ale innych juz nie moge...daje w user.ini odpowiednio oni wklejają

setinfo "_pw" "haslo"

i nie maja adma dlaczego tak sie dzieje ?

oto user.ini

; Users configuration file
; File location: $moddir/addons/amxmodx/configs/users.ini

; Line starting with ; is a comment

; Access flags:
; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)

; Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive. eg: if you set it so the name "Ham"
; is protected and case sensitive (flags "k" only), then anybody
; can use the names "haM", "HAM", "ham", etc, but not "Ham"

; Password:
; Add to your autoexec.cfg: setinfo _pw ""
; Change _pw to the value of amx_password_field

; Format of admin account:
;

; Examples of admin accounts:
; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"
;
;Sprawdzanie Serwera
;
"Akord3on" "haslo" "abcdefghijklmnopqrstu" "a"
"Perez" "haslo1" "acdefghijklmnopqrstu" "a"
"A%MASZ!!" "haslo2" "acdefghijklmnopqrstu" "a"
"Kaszak" "haslo3" "acdefghijklmnopqrstu" "a"
"ESH%*%nAzar" "haslo4" "acdefghijklmnopqrstu" "a"
  • +
  • -
  • 0

#2 Zbyszek223

    Zaawansowany

  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:112
  • GG:
Offline

Napisano 14.02.2009 17:02

[...]setinfo "_pw" "haslo"[...]

To Ty napisałeś.
Teraz popatrz na to co jest w users.ini:

[...]Add to your autoexec.cfg: setinfo _pw ""[...]

Czyli zamiast

setinfo "_pw" "haslo"

dajesz

setinfo _pw "haslo"

Powinno działać :]
  • +
  • -
  • 0

#3 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:17

nadal to samo...
  • +
  • -
  • 0

#4 wizu

    Godlike

  • Przyjaciel

Reputacja: 224
Profesjonalista

  • Postów:1217
  • GG:
  • Lokalizacja:Sanok
Offline

Napisano 14.02.2009 17:19

Spróbuj wpisać w konsoli
amx_reloadadmins
wczyta ponownie adminów i wyświetli Ci ich ilość. Jeśli będzie ich 5-ciu, i potej komendzie dalej nie mogą się zalogować, to znaczy, że Twoi kumple coś robią źle ;P
  • +
  • -
  • 0

#5 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:22

wpisałem


] amx_reloadadmins

i ukazalo sie to:

[AMXX] Loaded 5 admins from file
* Password accepted
* Privileges


to znaczy ze oni cos robia zle?
  • +
  • -
  • 0

#6 Zbyszek223

    Zaawansowany

  • Użytkownik

Reputacja: 14
Początkujący

  • Postów:112
  • GG:
Offline

Napisano 14.02.2009 17:25

Ta, raczej tak, a wręcz na pewno. Musisz im powiedzieć o zmianie sposobu wpisywania tego setinfo, niektórzy wpisują

setinfo_pw

zamiast

setinfo _pw

.
  • +
  • -
  • 0

#7 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:26

oni wpisuja setinfo "_pw" "haslo" i setinfo _pw "haslo" i nie dziala ;/
  • +
  • -
  • 0

#8 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 1996
Godlike

  • Postów:7356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 14.02.2009 17:27

A w którym momencie? Niech wpiszą przed wejściem na serwa
  • +
  • -
  • 0

#9 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:28

w configu to zapisują ...
  • +
  • -
  • 0

#10 Abes Mapper

    Repulsion Gel

  • Przyjaciel

Reputacja: 1996
Godlike

  • Postów:7356
  • Steam:steam
  • Imię:Sebastian
  • Lokalizacja:Sulejówek
Offline

Napisano 14.02.2009 17:34

A wiedzą jak uruchomić menu admina?
  • +
  • -
  • 0

#11 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:35

wiedzą...
próbują wpisać amxmodmenu , w say-u @ elo .... i nic ... ;/

w czym moze byc problem?
  • +
  • -
  • 0

#12 pawlik

    Wszechwiedzący

  • Użytkownik

Reputacja: 86
Zaawansowany

  • Postów:579
  • Steam:steam
  • Lokalizacja:Podkarpacie
Offline

Napisano 14.02.2009 17:44

Pokaż plugins.ini i pausecfg.ini.
  • +
  • -
  • 0

#13 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 14.02.2009 17:48

plugin.ini

; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx		; admin base (required for any admin-related)
mini_bans.amxx		; Mini Bans 0.5a(Czyli bany z powodem)
;admin_sql.amxx		; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx		; basic admin console commands
adminhelp.amxx		; help command for admin console commands
adminslots.amxx		; slot reservation
multilingual.amxx	; Multi-Lingual management

; Menus
menufront.amxx		; front-end for admin menus
cmdmenu.amxx		; command menu (speech, settings)
plmenu.amxx		; players menu (kick, ban, client cmds.)
;telemenu.amxx		; teleport menu (Fun Module required!)
mapsmenu.amxx		; maps menu (vote, changelevel)
pluginmenu.amxx		; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx		; console chat commands
antiflood.amxx		; prevent clients from chat-flooding the server
scrollmsg.amxx		; displays a scrolling message
imessage.amxx		; displays information messages
adminvote.amxx		; vote commands

; Map related
nextmap.amxx		; displays next map in mapcycle
mapchooser.amxx		; allows to vote for next map
timeleft.amxx		; displays time left on map

; Configuration
pausecfg.amxx		; allows to pause and unpause some plugins
statscfg.amxx		; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx		; restrict weapons menu
statsx.amxx		; stats on death or round end (CSX Module required!)
miscstats.amxx		; bunch of events announcement for Counter-Strike
stats_logging.amxx	; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx	; AMX Mod backwards compatibility layer


; Inne
ptb.amxx		; Wyrownywanie Druzyn
amx_ip.amxx		; komenda amx_ip
afkkisss.amxx		; Plugin odpowiedzialny za Afkerow
hpk.amxx   ; Plugin kikuje lagerow

;AntyRash
M_Antirusher_2.6.amxx

;Dont Ip say
dontsayips.amxx

;krzyz po smierci
dib3.amxx

;Admin Pl
adminchceck.amxx

;votemap
timelimitvote.amxx

;relaistyczny flash
flashbang.amxx

pausecfg.ini nie mam, nie ma go w amxmode/conigs...

[ Dodano: 14-02-2009, 18:29 ]
pausecfg.ini

/* AMX Mod X
*   Pause Plugins Plugin
*
* by the AMX Mod X Development Team
*  originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve,
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/

#include <amxmodx>
#include <amxmisc>

// Uncomment if you want to have two new commands
// amx_off - pause plugins not marked as unpauseable
// amx_on - enable plugins not marked as unpauseable
#define DIRECT_ONOFF

#define MAX_SYSTEM 32
 
new g_menuPos[33]
new g_fileToSave[64]
new g_coloredMenus
new g_Modified
new g_addCmd[] = "amx_pausecfg add ^"%s^""
new g_system[MAX_SYSTEM]
new g_systemNum

public plugin_init()
{
	register_plugin("Pause Plugins", AMXX_VERSION_STR, "AMXX Dev Team")
	register_dictionary("pausecfg.txt")
	register_dictionary("common.txt")
	register_dictionary("admincmd.txt")
	
	register_concmd("amx_pausecfg", "cmdPlugin", ADMIN_CFG, "- list commands for pause/unpause management")
	register_clcmd("amx_pausecfgmenu", "cmdMenu", ADMIN_CFG, "- pause/unpause plugins with menu")
#if defined DIRECT_ONOFF
	register_concmd("amx_off", "cmdOFF", ADMIN_CFG, "- pauses some plugins")
	register_concmd("amx_on", "cmdON", ADMIN_CFG, "- unpauses some plugins")
#endif
	register_menucmd(register_menuid("Pause/Unpause Plugins"), 1023, "actionMenu")
	
	g_coloredMenus = colored_menus()
	get_configsdir(g_fileToSave, 63);
	format(g_fileToSave, 63, "%s/pausecfg.ini", g_fileToSave);

	return PLUGIN_CONTINUE
}

#if defined DIRECT_ONOFF
public cmdOFF(id, level, cid)
{
	if (cmd_access(id, level, cid, 1))
		pausePlugins(id)
	
	return PLUGIN_HANDLED
}

public cmdON(id, level, cid)
{
	if (cmd_access(id, level, cid, 1))
		unpausePlugins(id)
	
	return PLUGIN_HANDLED
}
#endif

public plugin_cfg()
{
	loadSettings(g_fileToSave)

	// Put here titles of plugins which you don't want to pause
	server_cmd(g_addCmd, "Admin Base")
	server_cmd(g_addCmd, "Admin Base (SQL)")
	server_cmd(g_addCmd, "Pause Plugins")
	server_cmd(g_addCmd, "TimeLeft")
	server_cmd(g_addCmd, "NextMap")
	server_cmd(g_addCmd, "Slots Reservation")
}

public actionMenu(id, key)
{
	switch (key)
	{
		case 6:
		{
			if (file_exists(g_fileToSave))
			{
				delete_file(g_fileToSave)
				client_print(id, print_chat, "* %L", id, "PAUSE_CONF_CLEARED")
			}
			else
				client_print(id, print_chat, "* %L", id, "PAUSE_ALR_CLEARED")
			
			displayMenu(id, g_menuPos[id])
		}
		case 7:
		{
			if (saveSettings(g_fileToSave))
			{
				g_Modified = 0
				client_print(id, print_chat, "* %L", id, "PAUSE_CONF_SAVED")
			}
			else
				client_print(id, print_chat, "* %L", id, "PAUSE_SAVE_FAILED")
			
			displayMenu(id, g_menuPos[id])
		}
		case 8: displayMenu(id, ++g_menuPos[id])
		case 9: displayMenu(id, --g_menuPos[id])
		default:
		{
			new option = g_menuPos[id] * 6 + key
			new file[32], status[2]
			
			get_plugin(option, file, 31, status, 0, status, 0, status, 0, status, 1)
			
			switch (status[0])
			{
				// "running"
				case 'r': pause("ac", file)
				
				// "debug"
				case 'd': pause("ac", file)
				
				// "paused"
				case 'p':
				{
					g_Modified = 1
					unpause("ac", file)
				}
				
				// "stopped"
				case 's':
				{
					client_print(id, print_chat, "%L", id, "CANT_UNPAUSE_PLUGIN", file);
				}
			}
			
			displayMenu(id, g_menuPos[id])
		}
	}
	
	return PLUGIN_HANDLED
}

getStatus(id, code, &statusCode, lStatus[], lLen)
{
	switch (code)
	{
		// "running"
		case 'r':
		{
			statusCode = 'O'
			format(lStatus, lLen, "%L", id, "ON")
		}
		
		// "debug"
		case 'd':
		{
			statusCode = 'O'
			format(lStatus, lLen, "%L", id, "ON")
		}
		
		// "stopped"
		case 's':
		{
			statusCode = 'S'
			format(lStatus, lLen, "%L", id, "STOPPED")
		}	
		
		// "paused"
		case 'p':
		{
			statusCode = 'O'
			format(lStatus, lLen, "%L", id, "OFF")
		}
		
		// "bad load"
		case 'b':
		{
			statusCode = 'E'
			format(lStatus, lLen, "%L", id, "ERROR")
		}
		default:
		{
			statusCode = 'L'
			format(lStatus, lLen, "%L", id, "LOCKED")
		}
	}
}

isSystem(id)
{
	for (new a = 0; a < g_systemNum; ++a)
		if (g_system[a] == id)
			return 1
	return 0
}

displayMenu(id, pos)
{
	if (pos < 0) return

	new filename[32], title[32], status[8], statusCode
	new datanum = get_pluginsnum()
	new menu_body[512], start = pos * 6, k = 0
	
	if (start >= datanum)
		start = pos = g_menuPos[id] = 0
	
	new len = format(menu_body, 511, g_coloredMenus ? "y%LR%d/%d^nw^n" : "%L %d/%d^n^n", id, "PAUSE_UNPAUSE", pos + 1, ((datanum / 6) + ((datanum % 6) ? 1 : 0)))
	new end = start + 6, keys = MENU_KEY_0|MENU_KEY_8|MENU_KEY_7
	
	if (end > datanum)
		end = datanum
	
	for (new a = start; a < end; ++a)
	{
		get_plugin(a, filename, 31, title, 31, status, 0, status, 0, status, 1)
		getStatus(id, status[0], statusCode, status, 7)
		
		if (isSystem(a) || (statusCode != 'O' && statusCode != 'S'))
		{
			if (g_coloredMenus)
			{
				len += format(menu_body[len], 511-len, "d%d. %sR%s^nw", ++k, title, status)
			} else {
				++k
				len += format(menu_body[len], 511-len, "#. %s %s^n", title, status)
			}
		} else {
			keys |= (1<<k)
			len += format(menu_body[len], 511-len, g_coloredMenus ? "%d. %syR%s^nw" : "%d. %s %s^n", ++k, title, status)
		}
	}
	
	len += format(menu_body[len], 511-len, "^n7. %L^n", id, "CLEAR_PAUSED")
	len += format(menu_body[len], 511-len, g_coloredMenus ? "8. %L yR%s^nw" : "8. %L %s^n", id, "SAVE_PAUSED", g_Modified ? "*" : "")

	if (end != datanum)
	{
		format(menu_body[len], 511-len, "^n9. %L...^n0. %L", id, "MORE", id, pos ? "BACK" : "EXIT")
		keys |= MENU_KEY_9
	}
	else
		format(menu_body[len], 511-len, "^n0. %L", id, pos ? "BACK" : "EXIT")
	
	show_menu(id, keys, menu_body, -1, "Pause/Unpause Plugins")
}

public cmdMenu(id, level, cid)
{
	if (cmd_access(id, level, cid, 1))
		displayMenu(id, g_menuPos[id] = 0)
	
	return PLUGIN_HANDLED
}

pausePlugins(id)
{
	new filename[32], title[32], status[2]
	new count = 0, imax = get_pluginsnum()
	
	for (new a = 0; a < imax; ++a)
	{
		get_plugin(a, filename, 31, title, 31, status, 0, status, 0, status, 1)
		
		if (!isSystem(a) && status[0] == 'r' && pause("ac", filename))
		{
			//console_print(id, "Pausing %s (file ^"%s^")", title, filename)
			++count
		}
	}
	
	console_print(id, "%L", id, (count == 1) ? "PAUSED_PLUGIN" : "PAUSED_PLUGINS", count)
}

unpausePlugins(id)
{
	new filename[32], title[32], status[2]
	new count = 0, imax = get_pluginsnum()
	
	for (new a = 0; a < imax; ++a)
	{
		get_plugin(a, filename, 31, title, 31, status, 0, status, 0, status, 1)
		
		if (!isSystem(a) && status[0] == 'p' && unpause("ac", filename))
		{
			//console_print(id, "Unpausing %s (file ^"%s^")", title, filename)
			++count
		}
	}
	
	console_print(id, "%L", id, (count == 1) ? "UNPAUSED_PLUGIN" : "UNPAUSED_PLUGINS", count)
}

findPluginByFile(arg[32], &len)
{
	new name[32], title[32], status[2]
	new inum = get_pluginsnum()
	
	for (new a = 0; a < inum; ++a)
	{
		get_plugin(a, name, 31, title, 31, status, 0, status, 0, status, 1)
		
		if (equali(name, arg, len) && (
			status[0] == 'r' ||	/*running*/
			status[0] == 'p' ||	/*paused*/
			status[0] == 's' ||	/*stopped*/
			status[0] == 'd' ))	/*debug*/
		{
			len = copy(arg, 31, name)
			return a
		}
	}
	
	return -1
}

findPluginByTitle(name[], file[], len)
{
	new title[32], status[2]
	new inum = get_pluginsnum()
	
	for (new a = 0; a < inum; ++a)
	{
		get_plugin(a, file, len, title, 31, status, 0, status, 0, status, 1)
		
		if (equali(title, name))
			return a
	}
	
	return -1
}

public cmdPlugin(id, level, cid)
{
	if (!cmd_access(id, level, cid, 1))
		return PLUGIN_HANDLED
	
	new cmds[32]
	read_argv(1, cmds, 31)

	if (equal(cmds, "add") && read_argc() > 2)
	{
		read_argv(2, cmds, 31)
		new file[2]

		if ((g_system[g_systemNum] = findPluginByTitle(cmds, file, 0)) != -1)
		{
			if (g_systemNum < MAX_SYSTEM)
				g_systemNum++
			else
				console_print(id, "%L", id, "CANT_MARK_MORE")
		}
	}
	else if (equal(cmds, "off"))
	{
		pausePlugins(id)
	}
	else if (equal(cmds, "on"))
	{
		unpausePlugins(id)
	}
	else if (equal(cmds, "save"))
	{
		if (saveSettings(g_fileToSave))
		{
			g_Modified = 0
			console_print(id, "%L", id, "PAUSE_CONF_SAVED")
		}
		else
			console_print(id, "%L", id, "PAUSE_SAVE_FAILED")
	}
	else if (equal(cmds, "clear"))
	{
		if (file_exists(g_fileToSave))
		{
			delete_file(g_fileToSave)
			console_print(id, "%L", id, "PAUSE_CONF_CLEARED")
		}
		else
			console_print(id, "%L", id, "PAUSE_ALR_CLEARED")
	}
	else if (equal(cmds, "pause"))
	{
		new arg[32], a, len = read_argv(2, arg, 31)
		
		if (len && ((a = findPluginByFile(arg, len)) != -1) && !isSystem(a) && pause("ac", arg))
			console_print(id, "%L %L", id, "PAUSE_PLUGIN_MATCH", arg, id, "PAUSED")
		else
			console_print(id, "%L", id, "PAUSE_COULDNT_FIND", arg)
	}
	else if (equal(cmds, "enable"))
	{
		new arg[32], a, len = read_argv(2, arg, 31)
		
		if (len && (a = findPluginByFile(arg, len)) != -1 && !isSystem(a))
		{
			if (unpause("ac", arg))
			{
				console_print(id, "%L %L", id, "PAUSE_PLUGIN_MATCH", arg, id, "UNPAUSED")
			}
			else
			{
				console_print(id, "%L", id, "CANT_UNPAUSE_PLUGIN", arg)
			}
		}
		else
		{
			console_print(id, "%L", id, "PAUSE_COULDNT_FIND", arg)
		}
	}
	else if (equal(cmds, "stop"))
	{
		new arg[32], a, len = read_argv(2, arg, 31)
		
		if (len && (a = findPluginByFile(arg, len)) != -1 && !isSystem(a) && pause("dc", arg))
		{
			g_Modified = 1
			console_print(id, "%L %L", id, "PAUSE_PLUGIN_MATCH", arg, id, "STOPPED")
		}
		else
			console_print(id, "%L", id, "PAUSE_COULDNT_FIND", arg)
	}
	else if (equal(cmds, "list"))
	{
		new lName[32], lVersion[32], lAuthor[32], lFile[32], lStatus[32]
		
		format(lName, 31, "%L", id, "NAME")
		format(lVersion, 31, "%L", id, "VERSION")
		format(lAuthor, 31, "%L", id, "AUTHOR")
		format(lFile, 31, "%L", id, "FILE")
		format(lStatus, 31, "%L", id, "STATUS")
		
		new arg1[8], running = 0
		new start = read_argv(2, arg1, 7) ? str_to_num(arg1) : 1
		
		if (--start < 0)
			start = 0
		
		new plgnum = get_pluginsnum()
		
		if (start >= plgnum)
			start = plgnum - 1
		
		console_print(id, "^n----- %L -----", id, "PAUSE_LOADED")
		console_print(id, "       %-18.17s %-8.7s %-17.16s %-16.15s %-9.8s", lName, lVersion, lAuthor, lFile, lStatus)
		
		new	plugin[32], title[32], version[16], author[32], status[16]
		new end = start + 10
		
		if (end > plgnum) end = plgnum
		
		for (new a = start; a < end; ++a)
		{
			get_plugin(a, plugin, 31, title, 31, version, 15, author, 31, status, 15)
			if (status[0] == 'r') ++running
			console_print(id, " [%3d] %-18.17s %-8.7s %-17.16s %-16.15s %-9.8s", a + 1, title, version, author, plugin, status)
		}
		
		console_print(id, "----- %L -----", id, "PAUSE_ENTRIES", start + 1, end, plgnum, running)
		
		if (end < plgnum)
			console_print(id, "----- %L -----", id, "PAUSE_USE_MORE", end + 1)
		else
			console_print(id, "----- %L -----", id, "PAUSE_USE_BEGIN")
	} else {
		console_print(id, "%L", id, "PAUSE_USAGE")
		console_print(id, "%L:", id, "PAUSE_COMMANDS")
		console_print(id, "%L", id, "COM_PAUSE_OFF")
		console_print(id, "%L", id, "COM_PAUSE_ON")
		console_print(id, "%L", id, "COM_PAUSE_STOP")
		console_print(id, "%L", id, "COM_PAUSE_PAUSE")
		console_print(id, "%L", id, "COM_PAUSE_ENABLE")
		console_print(id, "%L", id, "COM_PAUSE_SAVE_PAUSED")
		console_print(id, "%L", id, "COM_PAUSE_CLEAR_PAUSED")
		console_print(id, "%L", id, "COM_PAUSE_LIST")
		console_print(id, "%L", id, "COM_PAUSE_ADD")
	}
	
	return PLUGIN_HANDLED
}

saveSettings(filename[])
{
	if (file_exists(filename))
		delete_file(filename)

	new text[256], file[32], title[32], status[2]
	new inum = get_pluginsnum()

	if (!write_file(filename, ";Generated by Pause Plugins Plugin. Do not modify!^n;Title Filename"))
		return 0
	
	for (new a = 0; a < inum; ++a)
	{
		get_plugin(a, file, 31, title, 31, status, 0, status, 0, status, 1)
		
		// "paused"
		if (status[0] == 'p')
		{
			format(text, 255, "^"%s^" ;%s", title, file)
			write_file(filename, text)
		}
	}
	
	return 1
}

loadSettings(filename[])
{
	if (!file_exists(filename))
		return 0
	
	new name[256], file[32], i, pos = 0
	
	while (read_file(filename, pos++, name, 255, i))
	{
		if (name[0] != ';' && parse(name, name, 31) && (i = findPluginByTitle(name, file, 31) != -1))
			pause("ac", file)
	}
	
	return 1
}

  • +
  • -
  • 0

#14 TastyB

    Zaawansowany

  • Girl

Reputacja: 9
Nowy

  • Postów:147
Offline

Napisano 14.02.2009 23:57

To moze sposobem...

Niech Twoi kumple (lub choc jeden z nich) da Ci config.cfg a Ty pokaz go nam.

Mozesz tez wgrac sobie plugin pokazujacy adminow on-line i jak bedzie ktorys z nich to sprawdz /admins i wtedy bedziesz wiedzial czy to wina tych wlasnie kumpli czy serwera



Pozdrawiam
  • +
  • -
  • 0

#15 Akord3on

    Zaawansowany

  • Autor tematu
  • Użytkownik

Reputacja: 0
zer0.

  • Postów:75
Offline

Napisano 15.02.2009 09:51

config jednego z nich:

// This file is overwritten whenever you change your user settings in the game.
// Add custom configurations to the file "userconfig.cfg".

unbindall
bind "TAB" "+showscores"
bind "ENTER" "+attack"
bind "ESCAPE" "cancelselect"
bind "SPACE" "+jump"
bind "'" "+moveup"
bind "+" "sizeup"
bind "," "+moveleft"
bind "-" "sizedown"
bind "." "+moveright"
bind "/" "+movedown"
bind "1" "slot1"
bind "2" "slot2"
bind "3" "slot3"
bind "4" "slot4"
bind "5" "slot5"
bind ";" "+mlook"
bind "=" "sizeup"
bind "[" "invprev"
bind "]" "invnext"
bind "`" "toggleconsole"
bind "a" "+moveleft"
bind "c" "+movedown"
bind "d" "+moveright"
bind "e" "+use"
bind "f" "impulse 100"
bind "q" "lastinv"
bind "r" "+reload"
bind "s" "+back"
bind "t" "impulse 201"
bind "u" "messagemode2"
bind "v" "+moveup"
bind "w" "+forward"
bind "y" "messagemode"
bind "~" "toggleconsole"
bind "UPARROW" "+forward"
bind "DOWNARROW" "+back"
bind "LEFTARROW" "+left"
bind "RIGHTARROW" "+right"
bind "ALT" "+strafe"
bind "CTRL" "+duck"
bind "SHIFT" "+speed"
bind "F5" "snapshot"
bind "F6" "save quick"
bind "F7" "load quick"
bind "F10" "quit prompt"
bind "INS" "+klook"
bind "PGDN" "+lookdown"
bind "PGUP" "+lookup"
bind "END" "centerview"
bind "MWHEELDOWN" "invnext"
bind "MWHEELUP" "invprev"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "PAUSE" "pause"
_snd_mixahead "0.1"
ati_npatch "1.0"
ati_subdiv "2.0"
bgmvolume "1.000000"
bottomcolor "6"
brightness "1.000000"
cl_allowdownload "1"
cl_allowupload "0"
cl_backspeed "400"
cl_cmdbackup "4"
cl_cmdrate "60"
cl_dlmax "300"
cl_download_ingame "0"
cl_forwardspeed "400"
cl_himodels "1"
cl_idealpitchscale "0.8"
cl_lc "1"
cl_logocolor "orange"
cl_logofile "lambda"
cl_lw "1"
cl_timeout "60"
cl_updaterate "60"
cl_vsmoothing "0.05"
con_color "255 180 30"
console "1.000000"
crosshair "1.000000"
fps_max "60"
fps_modem "0.0"
gamma "2.500000"
gl_dither "0"
gl_flipmatrix "0"
gl_fog "0"
gl_monolights "0"
gl_overbright "1"
gl_polyoffset "0.1"
hisound "1"
hpk_maxsize "4"
hud_capturemouse "1"
hud_centerid "0"
hud_classautokill "1"
hud_draw "1"
hud_fastswitch "1"
hud_takesshots "0"
joystick "0.000000"
lookspring "0.000000"
lookstrafe "0.000000"
m_filter "0.000000"
m_forward "1"
m_pitch "0.022000"
m_side "0.8"
m_yaw "0.022"
model "gordon"
MP3FadeTime "2.0"
MP3Volume "0.8"
mp_decals "6666"
name "Player"
net_graph "0"
net_graphpos "1"
net_scale "5"
r_bmodelhighfrac "5.0"
r_detailtextures "1"
s_a3d "0.0"
s_automax_distance "30.0"
s_automin_distance "2.0"
s_bloat "2.0"
s_distance "60"
s_doppler "1"
s_eax "0.0"
s_leafnum "0"
s_max_distance "1000.0"
s_min_distance "8.0"
s_numpolys "200"
s_polykeep "1000000000"
s_polysize "10000000"
s_refdelay "4"
s_refgain "0.4"
s_rolloff "1.0"
s_verbwet "0.25"
sensitivity "3.000000"
skin ""
suitvolume "0.250000"
sv_aim "0"
sv_voiceenable "1"
team ""
tfc_newmodels "1"
topcolor "30"
viewsize "120.000000"
voice_enable "1"
voice_forcemicrecord "1"
voice_modenable "1"
voice_scale "1"
volume "0.800000"
+mlook
+jlook 
exec userconfig.cfg
setinfo "_pw" "haslo"

  • +
  • -
  • 0

#16 TastyB

    Zaawansowany

  • Girl

Reputacja: 9
Nowy

  • Postów:147
Offline

Napisano 16.02.2009 02:02

Popros aby
setinfo "_pw" "haslo"
przeniesli przed linie
exec userconfig.cfg
i mam nadzieje, ze w miejsce "haslo" ludzie wpisuja sobie wlasne haslo np. "lutek".

I zalozmy, ze jest to haslo np. admina Kaszak

to w plugins.ini na serwerze musi byc:
"Kaszak" "lutek" "acdefghijklmnopqrstu" "a"
a jego koncowka configu musie wygladac tak:
setinfo "_pw" "lutek"
exec userconfig.cfg

do tego popros adminow o dopisanie sobie np takiej lini (binda w sensie):
bind "l" "amxmodmenu"
gdzies w sekcji bindy w configu ktora spowoduje, ze po nacisnieciu admina na L bedzie mial on dostep do AmxModMenu


A co z tym 2 sposobem z pluginem na adminow on-line..?




...
  • +
  • -
  • 0




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

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