Stránka 1 z 1

Rezervácie slotov

Napsal: 17 lis 2012, 01:06
od sampittko
Server: 109.74.146.22:37745

Zdravím.

Potreboval by som nastaviť rezervácie pre adminov ale SourceMod rezervácia nefunguje, skúšal som aj iný plugin ale nič nové. Nemáte nejaký ktorý vám ide alebo nemáte návod ako opraviť (nastaviť) SourceMod základnú rezerváciu? Ďakujem.

Re: Rezervácie slotov

Napsal: 17 lis 2012, 12:29
od Mysteria
Proč by SM rezervace nefungovala?
Jak máš nastavenu tu část v sourcemod.cfg s rezervacema?

Re: Rezervácie slotov

Napsal: 17 lis 2012, 18:46
od sampittko
http://wiki.alliedmods.net/Reserved_Slots_(SourceMod)

Všetky cvary som si nastavil tak, ako som chcel ale akokeby to nejde.. Aj som skryl sloty ale zostali tak ako boli. Niekde bude chyba ale neviem kde..

Re: Rezervácie slotov

Napsal: 17 lis 2012, 19:58
od Mysteria
Neptám se tě odkaz na návod, chci aby jsi sem dal jak máš nastavenou tuhle část:

Kód: Vybrat vše

// Specifies how the reserved slots plugin operates. Valid values are:
// 0 : Public slots are used in preference to reserved slots. Reserved slots are freed before public slots.
// 1 : If someone with reserve access joins into a reserved slot, the player with the highest latency and
// no reserved slot access (spectator players are selected first) is kicked to make room. Thus, the reserved
// slots always remains free. The only situation where the reserved slot(s) can become properly occupied is
// if the server is full with reserve slot access clients.
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserve_type 1

// Specifies the number of reserved player slots.  Users with the reservation
// admin flag set will be able to join the server when there are no public slots
// remaining. If someone does not have this flag, they will be kicked.
// (Public slots are defined as: maxplayers - number of reserved slots)
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserved_slots 0

// Specifies whether or not reserved slots will be hidden (subtracted from max
// slot count). Valid values are 0 (Visible) or 1 (Hidden).
// --
// Requires: reservedslots.smx
// Default: 0
sm_hide_slots 0

Každopádně, pokud máš třeba 24 slotový server a chceš mít 20 slotů viditelných a ty 4 pro adminy, tak to musí být nastaveno třeba takhle, protože to nefunguje korektně jako u CSS:

Kód: Vybrat vše

sm_reserve_type 1
sm_reserved_slots 44 (tohle číslo získáš jako 64 mínus počet slotů, který chceš aby byli vidět)
sm_hide_slots 1

Právě ta nekorektnost oproti CSS je v příkazu sm_reserved_slots.
Nevím proč, ale normálně u CSS to funguje tak, že se tohle číslo počítá jako zakoupený počet slotů mínus počet slotů, které mají být vidět, ale u CSGO se to počítá od 64 nehledě na to, kolik jich máš koupeno.

Nebo alespoň tak to funguje u mých serverů co mám v podpisu ;) Ale taky mi chvíli trvalo, než jsem na to přišel.

Re: Rezervácie slotov

Napsal: 17 lis 2012, 20:45
od sampittko
aha, diki fest :) ináč, keď nechcem mať žiadny slot skrytý tak môžem dať sm_hide_slots 0 ako default a sm_reserved_slots 38 nie?

mám to takto teraz:

Kód: Vybrat vše

// Specifies how the reserved slots plugin operates. Valid values are:
// 0 : Public slots are used in preference to reserved slots. Reserved slots are freed before public slots.
// 1 : If someone with reserve access joins into a reserved slot, the player with the highest latency and
// no reserved slot access (spectator players are selected first) is kicked to make room. Thus, the reserved
// slots always remains free. The only situation where the reserved slot(s) can become properly occupied is
// if the server is full with reserve slot access clients.
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserve_type 1

// Specifies the number of reserved player slots.  Users with the reservation
// admin flag set will be able to join the server when there are no public slots
// remaining. If someone does not have this flag, they will be kicked.
// (Public slots are defined as: maxplayers - number of reserved slots)
// --
// Requires: reservedslots.smx
// Default: 0
sm_reserved_slots 38

// Specifies whether or not reserved slots will be hidden (subtracted from max
// slot count). Valid values are 0 (Visible) or 1 (Hidden).
// --
// Requires: reservedslots.smx
// Default: 0
sm_hide_slots 0

Re: Rezervácie slotov

Napsal: 17 lis 2012, 21:06
od Mysteria
Ano, mělo by to tak asi fungovat.

Re: Rezervácie slotov

Napsal: 17 lis 2012, 21:07
od sampittko
server je plný.. nemusia tak náhodou byť skryté sloty? lebo vyzerá to tak že to nejako nekickuje ked sa chce pripojit hrac s imunitou

Re: Rezervácie slotov

Napsal: 17 lis 2012, 23:29
od sampittko
už mi to ide ;) stačilo dať 64-(číslo ktoré by malo byť o 1 slot menšie ako počet slotov na serveri)

Diki moc. Karmu som ti dal. LOCK