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.
|
[ROZWIĄZANE] Dopiska hostingu do serwera
#1
Napisano 04.12.2011 01:24
#2
Napisano 04.12.2011 01:37
a co do tego pluginy to chyba idzie ustawić np na samym początku a potem nazwa serwera
| CPU: I7-6700K @4.7GHz | Cooling: Corsair H110 | GPU: MSI GTX 1080 Gaming X | MOBO: Asus Maximus VIII Hero | RAM: Kingston Savage 16GB DDR4 @2800MHz |
| SSD: Samsung 840 Pro 128GB | SSD2: Samsung 840 Pro 256GB | PSU: Be Quiet L8 630W | Case: Gladius M40 | Mouse: Gigabyte M6980X | Keyboard: Sharkoon SHARK ZONE K20 | Headphones: HyperX HX Cloud Black | Display: Triple LG 24MP67VQ-P |
TS3: ts.kreedzmania.pl - 512 Slotów - Darmowe Kanały
#3
Napisano 04.12.2011 02:00
#4
Napisano 04.12.2011 02:14
| CPU: I7-6700K @4.7GHz | Cooling: Corsair H110 | GPU: MSI GTX 1080 Gaming X | MOBO: Asus Maximus VIII Hero | RAM: Kingston Savage 16GB DDR4 @2800MHz |
| SSD: Samsung 840 Pro 128GB | SSD2: Samsung 840 Pro 256GB | PSU: Be Quiet L8 630W | Case: Gladius M40 | Mouse: Gigabyte M6980X | Keyboard: Sharkoon SHARK ZONE K20 | Headphones: HyperX HX Cloud Black | Display: Triple LG 24MP67VQ-P |
TS3: ts.kreedzmania.pl - 512 Slotów - Darmowe Kanały
#5
Napisano 04.12.2011 14:09
#6
Napisano 04.12.2011 14:17
| CPU: I7-6700K @4.7GHz | Cooling: Corsair H110 | GPU: MSI GTX 1080 Gaming X | MOBO: Asus Maximus VIII Hero | RAM: Kingston Savage 16GB DDR4 @2800MHz |
| SSD: Samsung 840 Pro 128GB | SSD2: Samsung 840 Pro 256GB | PSU: Be Quiet L8 630W | Case: Gladius M40 | Mouse: Gigabyte M6980X | Keyboard: Sharkoon SHARK ZONE K20 | Headphones: HyperX HX Cloud Black | Display: Triple LG 24MP67VQ-P |
TS3: ts.kreedzmania.pl - 512 Slotów - Darmowe Kanały
#7
Napisano 04.12.2011 14:28
Automatyczna wiadomość
Ten temat został przeniesiony z forum:
AMX Mod X > Pytania
do
Scripting AMXX > Pytania
#8
Napisano 04.12.2011 15:34
💸 SellYourSkins.com - Łatwo sprzedaj swoje skiny do CS:GO
💸⇄🃏 Automatyczny Bot Levelowania Steam - LVLUPSteam.com
🛒Coinsy CSGOPolygon Za SMS, PSC, Przelew - CoinSell.pro
Twój Sklep CS2 - CSGOPAKA
Coinsy do CSGOPolygon, CSGO500, CSGOEmpire - CSGOLombard.com
💸 Graj w CS2 / CS 1.6 i zarabiaj - BoostProject.pro
CS2 Gambling Sites and Free Betting Codes - DreamCodes.gg
Otwieraj skrzynki i wygrywaj najlepsze skiny CS2 na SkinsProject.gg
🤑 Accept CS2 skins for online payments and donations - SkinsMoney
Płatności SMS Premium Rate oraz Direct Biling - SimPay.pl
Szukasz noclegu? Kwatery, noclegi, tanie noclegi, wakacje oferty, wczasy nad jeziorem - RuszajWPolske.pl
#9
Napisano 04.12.2011 16:55
/*
Description
Adds the time left to the host name in h:m:s format.
CVAR
amx_hostname_update
How often the hostname is updated, in seconds. (0 = disabled)
Credit
Original plugin by Cheap_Suit, see v1.3.4 in the history below.
History
1.0 First version by Deviance/Doombringer
1.1 Bug fix and h:m:s format
1.2 Hostname is restored at map end. Added CVAR amx_hostname_update.
1.2.1 Added delay before amx_hostname_update is read, so amxx.cfg is executed
first.
1.2.3 Hostname cvar is read with delay now, too.
Bug fix: Timer is halted before restoring the hostname.
1.3.1 Using m:s format if timeleft is less than one hour.
Added leading zeros.
1.3.2 Bug fix: Hostname is only restored if a timer is running.
Added several checks if hostname is empty.
Made variables used in update_time global for performance.
1.3.4 From Cheap_Suit's original plugin:
* "format" syntax for leading zeros, saving a few lines of code.
* Added check if there is a time limit.
1.3.5 Bug fix: "no time limit" was shown during chat time.
1.3.6 Static variables for update_time()
*/
#include <amxmodx>
#include <amxmisc>
#define Plugin "Time left in hostname"
#define Version "1.3.6"
#define Author "Doombringer,pizzahut"
#define CVARNAME "amx_hostname_update"
new g_old_hostname[64]
new g_mp_timelimit
public plugin_init()
{
register_plugin(Plugin,Version,Author)
register_cvar(CVARNAME,"1.0")
g_mp_timelimit = get_cvar_pointer("mp_timelimit")
set_task(2.0,"check_time")
}
// Check cvar for valid values, correct if needed, update hostname now and set
// up a task.
public check_time()
{
new Float:time = get_cvar_float(CVARNAME)
if(time != 0.0)
{
time = floatabs(time)
if(time < 1.0)
time = 1.0
get_cvar_string("hostname",g_old_hostname,63)
if(strlen(g_old_hostname))
{
update_time()
set_task(time,"update_time",1,"",0,"b")
}
}
}
// Update hostname.
public update_time()
{
static new_hostname[64]
static h,m,s
if(strlen(g_old_hostname))
{
if(get_pcvar_float(g_mp_timelimit))
{
s = get_timeleft()
m = s/60
h = m/60
s = s-m*60
m = m-h*60
if(h)
format(new_hostname,63,"%s (Time left %d:%02d:%02d)",g_old_hostname,h,m,s)
else
format(new_hostname,63,"%s (Time left %d:%02d)", g_old_hostname,m,s)
}
else
format(new_hostname,63,"%s (No time limit)",g_old_hostname)
set_cvar_string("hostname",new_hostname)
}
}
// Restoring hostname in case it's not reset in server.cfg.
public plugin_end()
{
if(task_exists(1))
{
remove_task(1)
if(strlen(g_old_hostname))
set_cvar_string("hostname", g_old_hostname)
}
}
Użytkownik Diablo Mod edytował ten post 04.12.2011 16:57
#10
Napisano 04.12.2011 18:27
sprawdz
#include <amxmodx> #include <amxmisc> #define Plugin "Time left in hostname" #define Version "1.3.6" #define Author "Doombringer,pizzahut" #define CVARNAME "amx_hostname_update" new g_old_hostname[64] new g_mp_timelimit public plugin_init() { register_plugin(Plugin,Version,Author) register_cvar(CVARNAME,"1.0") g_mp_timelimit = get_cvar_pointer("mp_timelimit") set_task(2.0,"check_time") } // Check cvar for valid values, correct if needed, update hostname now and set // up a task. public check_time() { new Float:time = get_cvar_float(CVARNAME) if(time != 0.0) { time = floatabs(time) if(time < 1.0) time = 1.0 get_cvar_string("hostname",g_old_hostname,63) if(strlen(g_old_hostname)) { update_time() set_task(time,"update_time",1,"",0,"b") } } } // Update hostname. public update_time() { static new_hostname[64] static h,m,s if(strlen(g_old_hostname)) { if(get_pcvar_float(g_mp_timelimit)) { s = get_timeleft() m = s/60 h = m/60 s = s-m*60 m = m-h*60 if(h) format(new_hostname,63,"(Time left %d:%02d:%02d) %s",h,m,s, g_old_hostname) else format(new_hostname,63,"(Time left %d:%02d) %s", m,s, g_old_hostname) } else format(new_hostname,63,"(No time limit) %s",g_old_hostname) set_cvar_string("hostname",new_hostname) } } // Restoring hostname in case it's not reset in server.cfg. public plugin_end() { if(task_exists(1)) { remove_task(1) if(strlen(g_old_hostname)) set_cvar_string("hostname", g_old_hostname) } }
działa bo testowałem u siebie
Użytkownik QuahodroN125 edytował ten post 04.12.2011 18:24
| CPU: I7-6700K @4.7GHz | Cooling: Corsair H110 | GPU: MSI GTX 1080 Gaming X | MOBO: Asus Maximus VIII Hero | RAM: Kingston Savage 16GB DDR4 @2800MHz |
| SSD: Samsung 840 Pro 128GB | SSD2: Samsung 840 Pro 256GB | PSU: Be Quiet L8 630W | Case: Gladius M40 | Mouse: Gigabyte M6980X | Keyboard: Sharkoon SHARK ZONE K20 | Headphones: HyperX HX Cloud Black | Display: Triple LG 24MP67VQ-P |
TS3: ts.kreedzmania.pl - 512 Slotów - Darmowe Kanały
#11
Napisano 04.12.2011 20:29
#12
Napisano 04.12.2011 20:44
Ten temat został zamknięty przez moderatora.
Powód: Pomoc udzielona
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Użytkownicy przeglądający ten temat: 1
0 użytkowników, 1 gości, 0 anonimowych