Galileo su 'smart next map vote'

Šiame forume vartotojai gali prašyti jiems reikiamo plugino.
Forum rules
Šiame forume galite siūlyti idėjas ar prašyti jums reikalingų pluginų. Jei kas nors pradės jį kurti, tai pasirašys Jūsų sukurtoje temoje. Niekada nepykite, jei niekas neatsako į Jūsų prašymą. Gal tai tiesiog per sudėtinga, arba reikalauja per daug darbo.
GhostMan
Gana aktyvus vartotojas
Posts: 311
Joined: 2012 Jun 30 17:52

Galileo su 'smart next map vote'

Post by GhostMan »

Pagaminkit kasnors Galileo su tokia funkcija:

Jei serveryje yra <10 žaidėjų per sekančio žemėlapio balsavimą (nepriklausomai jis vykdomas dėl RTV ar pasibaigus timelimit) sąrašas būtų užpildomas žemėlapiais iš mapcycle_small.txt, jei >10, tai standartiškai - iš mapcycle.txt.
NWK.LT Counter-Strike 1.6 Serveriai:
  • War3FT ★ [url=steam://connect/cs.nwk.lt:27015]cs.nwk.lt:27015[/url]
  • JailBreak ★ [url=steam://connect/cs.nwk.lt:27016]cs.nwk.lt:27016[/url]
  • Public ★ [url=steam://connect/cs.nwk.lt:27017]cs.nwk.lt:27017[/url]
  • DeathRun ★ [url=steam://connect/cs.nwk.lt:27018]cs.nwk.lt:27018[/url]
  • Hide'N'Seek ★ [url=steam://connect/cs.nwk.lt:27019]cs.nwk.lt:27019[/url]

User avatar
Trickas
Flooderis arba specialistas
Posts: 889
Joined: 2012 Jan 25 18:20
Skype: ner.e5

Re: Galileo su 'smart next map vote'

Post by Trickas »

Atsidaryk pagrindinį galileo pluginą, susirask funkciją vote_addFiller ir

Code: Select all

    // grab the name of the filler file    new filename[256];    get_pcvar_string(cvar_voteMapFile, filename, sizeof(filename)-1);
pakeisk į

Code: Select all

new players[32], pnum;    get_players(players, pnum, "ch");     // grab the name of the filler file    new filename[256];    if (pnum < 9)    {        filename = ("mapcycle-small.txt");    }    else    {        filename = ("mapcycle.txt");    }
Taip pat aišku ištrink tą cvarą pradžioj. "cvar_voteMapFile"

Lyg ir turėtų veikt, čia seniau pasidaręs buvau, tai ištraukiau iš kodo, viso plugin duot nenoriu, nes ten daugiau keista.
- Skype: ner.e5
- Steam: Tr1ckas

GhostMan
Gana aktyvus vartotojas
Posts: 311
Joined: 2012 Jun 30 17:52

Re: Galileo su 'smart next map vote'

Post by GhostMan »

Ką h flag'as daro?
"a" - Don't return dead players
"b" - Don't return alive players
"c" - Skip bots
"d" - Skip real players
"e" - Match with passed team
"f" - Match with part of name
"g" - Ignore case sensitivity
NWK.LT Counter-Strike 1.6 Serveriai:
  • War3FT ★ [url=steam://connect/cs.nwk.lt:27015]cs.nwk.lt:27015[/url]
  • JailBreak ★ [url=steam://connect/cs.nwk.lt:27016]cs.nwk.lt:27016[/url]
  • Public ★ [url=steam://connect/cs.nwk.lt:27017]cs.nwk.lt:27017[/url]
  • DeathRun ★ [url=steam://connect/cs.nwk.lt:27018]cs.nwk.lt:27018[/url]
  • Hide'N'Seek ★ [url=steam://connect/cs.nwk.lt:27019]cs.nwk.lt:27019[/url]

User avatar
psychical
Viršininkas
Posts: 2094
Joined: 2011 Mar 12 22:19
Skype: tautvydas11
Location: Linksmakalnis
Contact:

Re: Galileo su 'smart next map vote'

Post by psychical »

Optional list of filtering flags:
  "a" - do not include dead clients
  "b" - do not include alive clients
  "c" - do not include bots
  "d" - do not include human clients
  "e" - match with team
  "f" - match with part of name
  "g" - match case insensitive
  "h" - do not include HLTV proxies
  "i" - include connecting clients
Atsinaujink.

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Galileo su 'smart next map vote'

Post by laimiukas3 »

Trickai kaip ir viska padarau ka tu cia parasias bet gaunu kompiliuojant tokia klaida
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// galileo.sma
//
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(188) :
error 017: undefined symbol "cvar_rtvReminder"
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(1516)
: warning 217: loose indentation
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(1517)
: warning 217: loose indentation
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(1532)
: warning 217: loose indentation
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(2473)
: error 017: undefined symbol "cvar_rtvReminder"
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(2476)
: error 017: undefined symbol "cvar_rtvReminder"
// C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx\scripting\galileo.sma(2476)
: error 001: expected token: ",", but found ";"
//
// 4 Errors.
// Could not locate output file C:\Users\FoX\Desktop\6153\cstrike\addons\amxmodx
\scripting\compiled\galileo.amx (compile failed).
gal kas galit paziureti ka as ne taip ten darau aciu :)
Attachments
galileo.sma
(76.06 KiB) Downloaded 787 times
Image
Image
Image

DYaGesS
Flooderis arba specialistas
Posts: 875
Joined: 2013 Jan 16 01:01
Skype: usercs.com
Contact:

Re: Galileo su 'smart next map vote'

Post by DYaGesS »

Sutvarkyta laimiuko problema :D
Padėjau? +rep

User avatar
iFreak
Gana aktyvus vartotojas
Posts: 231
Joined: 2013 Sep 28 20:52
Skype: ifreak_1

Re: Galileo su 'smart next map vote'

Post by iFreak »

Gal kas galit pažiūrėti kodėl error meto? neįšeina padaryt

Image
Attachments
galileo.sma
(76.09 KiB) Downloaded 779 times
Image

User avatar
V1LKAS
Flooderis arba specialistas
Posts: 612
Joined: 2012 Nov 08 12:55
Skype: darius489

Re: Galileo su 'smart next map vote'

Post by V1LKAS »

galileo.sma
(75.96 KiB) Downloaded 639 times
Prašau

User avatar
iFreak
Gana aktyvus vartotojas
Posts: 231
Joined: 2013 Sep 28 20:52
Skype: ifreak_1

Re: Galileo su 'smart next map vote'

Post by iFreak »

V1LKAS wrote:
galileo.sma
Prašau
Veikia , dėkui. :respect:
Image

User avatar
zkd
O taip. Jis jau surinko 50 žinučių!
Posts: 60
Joined: 2015 Nov 05 16:54
Skype: Edga.zkd
Location: Vilnius
Contact:

Re: Galileo su 'smart next map vote'

Post by zkd »

Turiu vieną klausima, tai kiek suprantu reikia man susikurti, (mapcycle_small.txt) ir (mapcycle.txt) ir juos ikelt i configs? kad veiktu? nes šiuo metu man neveikia.

išmeta:

Enough players have rocked the vote that a vote for the next map will now begin.
Vote creation failed; no maps found.
Deagle.LT - Counter-Strike serverių tinklas!

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests