Witam,
Nie działa mi komenda "pause" która jest w menu komend w AMXMODMENU. WYświetla mi się tylko: "GRACZ: zatrzymaj serwer" a serwer WCALE SIĘ NIE ZATRZYMAŁ [...]
Dodaje screena ...
Proszę o pomoc i Pozdrawiam.
Bedą plusy +++ !!
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.
|
Najlepsza odpowiedź james2001 , 29.04.2014 15:44
Ale jestem głupek
Wystarczyło edytować "cmds.ini"
Przejdź do postuNapisano 24.04.2014 13:33
Witam,
Nie działa mi komenda "pause" która jest w menu komend w AMXMODMENU. WYświetla mi się tylko: "GRACZ: zatrzymaj serwer" a serwer WCALE SIĘ NIE ZATRZYMAŁ [...]
Dodaje screena ...
Proszę o pomoc i Pozdrawiam.
Bedą plusy +++ !!
Napisano 24.04.2014 14:06
W logach tylko coś takiego:
L 04/24/2014 - 14:40:37: [admincmd.amxx] Cmd: "[PL] CODMOD [1201 LvL] by **CS-<0><><>" pause server L 04/24/2014 - 14:40:38: [admincmd.amxx] Cmd: "[PL] CODMOD [1201 LvL] by **CS-<0><><>" pause server L 04/24/2014 - 14:40:38: [admincmd.amxx] Cmd: "[PL] CODMOD [1201 LvL] by **CS-<0><><>" pause server
ERRORÓW NIE MA.
Moje plugins.ini
; AMX Mod X plugins amxbans_core.amxx amxbans_main.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 ; TUTAJ dopisuj samodzielnie zainstalowane pluginy: cod_adminmenu.amxx ; dodawanie EXP abd.amxx ; obrazenia zadane RoundSound.amxx ; zawalisty round sound parachute.amxx ; spadochron ultimate_sounds.amxx ; dzwieki "monsteeeer killl" itp c4.amxx ; czas do wybuchu bomby Admin_Screen3v15.amxx ; ss'y menu wskrzeszanie.amxx ; plugin do klasy "szalony lekarz" cod_hsxp.amxx ; za strzal heda cod_nagrody_exp.amxx ; najlepsi gracze rundy OddajPerk.amxx ; oddaj i daj perk
Napisano 24.04.2014 14:14
A w pliku admincmd.sma mam takie coś:
pausable=get_cvar_pointer("pausable"); i register_clcmd("pauseAck", "cmdLBack") i register_concmd("amx_pause", "cmdPause", ADMIN_CVAR, "- pause or unpause the game") i new g_pauseCon i new pausable;
public cmdLBack()
{
if (!g_PauseAllowed)
return PLUGIN_CONTINUE
new paused[25]
format(paused, 24, "%L", g_pauseCon, g_Paused ? "UNPAUSED" : "PAUSED")
set_cvar_float("pausable", g_pausAble)
console_print(g_pauseCon, "[AMXX] Server %s", paused)
g_PauseAllowed = false
if (g_Paused)
g_Paused = false
else
g_Paused = true
return PLUGIN_HANDLED
}
public cmdPause(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
new authid[32], name[32], slayer = id
get_user_authid(id, authid, 31)
get_user_name(id, name, 31)
if (pausable!=0)
{
g_pausAble = get_pcvar_float(pausable)
}
if (!slayer)
slayer = find_player("h")
if (!slayer)
{
console_print(id, "[AMXX] %L", id, "UNABLE_PAUSE")
return PLUGIN_HANDLED
}
set_cvar_float("pausable", 1.0)
g_PauseAllowed = true
client_cmd(slayer, "pause;pauseAck")
log_amx("Cmd: ^"%s<%d><%s><>^" %s server", name, get_user_userid(id), authid, g_Paused ? "unpause" : "pause")
console_print(id, "[AMXX] %L", id, g_Paused ? "UNPAUSING" : "PAUSING")
// Display the message to all clients
new maxpl = get_maxplayers();
for (new i = 1; i <= maxpl; i++)
{
if (is_user_connected(i) && !is_user_bot(i))
{
show_activity_id(i, id, name, "%L server", i, g_Paused ? "UNPAUSE" : "PAUSE");
}
}
g_pauseCon = id
return PLUGIN_HANDLED
}
To wszystko z wyrazami "pause"
Czy wszystko jest w tym kodzie dobrze ??
Napisano 28.04.2014 17:50
Zobacz to w załączniku. Może masz coś pokićkane w pluginie.
Podmień pliki i zobacz, tylko przedtem, RR serwera + zmiana mapy.
0 użytkowników, 0 gości, 0 anonimowych