Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: sourceserver.info. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

1

Donnerstag, 21. November 2013, 23:50

Mapvote ><Setnextmap

Guten Tag zusammen,

Ich hab ein Problem das wohl schon viele hatten und zwar geht es um den mapvote für admins von SM.
Ich wollte wissen ob und wenn ja wie man das basevote oder mapchooser script so verändern kann das die map nach nem vote nicht sofort gewechselt wird???
Sprich statt das nach dem vote sofort die map gewechselt wird möchte ich einfach das sm_setnextmap.... gesetzt wird. Geht das?`???

Und ja ich kenn die Plugins wie Custom Votes, mapchooser oder rockthevote. (mein ich aber nich die funktionen kenn ich ja)

will einfach das die Admins aufm server über das adminmenü einen multimapvote starten können und die nächste map nach ablauf des votes gesetzt wird und nich sofort nach dem vote die map gewechselt wird.

Vielen Dank schonma im Vorraus

mR.bRowN

2

Freitag, 22. November 2013, 00:41

Ja die Funktionalität ist auch schon gegeben. Der Command der einen mapvote startet lautet sm_mapvote (bzw. !mapvote, /mapvote) und ist default als Admin Command vorgesehen.
https://wiki.alliedmods.net/Map_Management_Plugins_(SourceMod)

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

3

Freitag, 22. November 2013, 15:21

Also nochmal das es den befehl sm_mapvote gibt weis ich löst aber immer noch nicht mein problem. Ich möchte das die admins die maps selber wählen können die in den vote kommen und nicht das mapchooser irgendwelche maps aussucht! und die map soll dann erst nach mapende gewechselt werden und nicht sofort!

4

Freitag, 22. November 2013, 17:37

Die Map wird bei richtiger Konfiguration (wenn Ich mich recht entsinne bei der Standart Konfiguration) bei einem normalen Mapvote nicht sofort gewechselt. Maps können über den nominate Befehl zur Abstimmung hinzugefügt werden. Wenn du willst das nur Admins abstimmen können ist das wahrscheinlich eine Änderung von max. 5 Zeilen im Code des Plugins. Also entweder Ich habe dein Problem noch nicht verstanden oder wir reden an einander vorbei :S

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

5

Freitag, 22. November 2013, 21:02

ich möchte das nur Admins im Admin Menü einen Mapvote von Admins selbstgewählten Maps erstellen können.
Bei der Standard konfiguration über die basevotes sprich der befehl sm_votemap #1 #2 #3 ... wird die map aber sofort gewechselt. Und das kann ich nicht einstellen.
Bei mapchooser hingegen wird der Befehl sm_mapvote benutzt woraufhin aber ein automatischer vote abläuft in dem man die maps nicht selbst wählen kann.
Und bei nominatios können ja dann die anderen mitspieler auch mit nominieren das möchte ich aber nicht.

6

Freitag, 22. November 2013, 21:42

Ahh jetzt hab auch Ich dich verstanden :D Moment Ich bastle dir grad mal eine Version mit einer CVar, die das nominate für User blockt :)

//EDIT:

nominations.sp:

Spoiler Spoiler

PHP-Quelltext

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
/**
 * vim: set ts=4 :
 * =============================================================================
 * SourceMod Rock The Vote Plugin
 * Creates a map vote when the required number of players have requested one.
 *
 * SourceMod (C)2004-2008 AlliedModders LLC.  All rights reserved.
 * =============================================================================
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, version 3.0, as published by the
 * Free Software Foundation.
 * 
 * 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, see <http://www.gnu.org/licenses/>.
 *
 * As a special exception, AlliedModders LLC gives you permission to link the
 * code of this program (as well as its derivative works) to "Half-Life 2," the
 * "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
 * by the Valve Corporation.  You must obey the GNU General Public License in
 * all respects for all other code used.  Additionally, AlliedModders LLC grants
 * this exception to all derivative works.  AlliedModders LLC defines further
 * exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
 * or <http://www.sourcemod.net/license.php>.
 *
 * Version: $Id$
 */

#include <sourcemod>
#include <mapchooser>

#pragma semicolon 1

public Plugin:myinfo =
{
    name "Map Nominations",
    author "AlliedModders LLC",
    description "Provides Map Nominations",
    version SOURCEMOD_VERSION,
    url "http://www.sourcemod.net/"
};

new Handle:g_Cvar_ExcludeOld INVALID_HANDLE;
new Handle:g_Cvar_ExcludeCurrent INVALID_HANDLE;
new Handle:g_Cvar_Permission INVALID_HANDLE;
new permission;

new Handle:g_MapList INVALID_HANDLE;
new Handle:g_MapMenu INVALID_HANDLE;
new g_mapFileSerial = -1;

#define MAPSTATUS_ENABLED (1<<0)
#define MAPSTATUS_DISABLED (1<<1)
#define MAPSTATUS_EXCLUDE_CURRENT (1<<2)
#define MAPSTATUS_EXCLUDE_PREVIOUS (1<<3)
#define MAPSTATUS_EXCLUDE_NOMINATED (1<<4)

new Handle:g_mapTrie;

public OnPluginStart()
{
    LoadTranslations("common.phrases");
    LoadTranslations("nominations.phrases");
    
    new arraySize ByteCountToCells(33);    
    g_MapList CreateArray(arraySize);
    
    g_Cvar_ExcludeOld CreateConVar("sm_nominate_excludeold""1""Specifies if the current map should be excluded from the Nominations list"0true0.00true1.0);
    g_Cvar_ExcludeCurrent CreateConVar("sm_nominate_excludecurrent""1""Specifies if the MapChooser excluded maps should also be excluded from Nominations"0true0.00true1.0);
    g_Cvar_Permission CreateConVar("sm_nominate_permission""1""Enable nominations only for admins?"0true0.00true1.0);
    permission GetConVarInt(g_Cvar_Permission);
    RegConsoleCmd("say"Command_Say);
    RegConsoleCmd("say_team"Command_Say);
    
    if(permission == 0)
    {
        RegConsoleCmd("sm_nominate"Command_Nominate);
    }
    else
    {
        RegAdminCmd("sm_nominate"Command_NominateADMFLAG_CHANGEMAP"sm_nominate - Add nominate a map to be voted.");
    }
    
    RegAdminCmd("sm_nominate_addmap"Command_AddmapADMFLAG_CHANGEMAP"sm_nominate_addmap <mapname> - Forces a map to be on the next mapvote.");
    
    g_mapTrie CreateTrie();
}

public OnConfigsExecuted()
{
    if (ReadMapList(g_MapList,
                    g_mapFileSerial,
                    "nominations",
                    MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER)
        == INVALID_HANDLE)
    {
        if (g_mapFileSerial == -1)
        {
            SetFailState("Unable to create a valid map list.");
        }
    }
    
    BuildMapMenu();
}

public OnNominationRemoved(const String:map[], owner)
{
    new status;
    
    /* Is the map in our list? */
    if (!GetTrieValue(g_mapTriemapstatus))
    {
        return;    
    }
    
    /* Was the map disabled due to being nominated */
    if ((status MAPSTATUS_EXCLUDE_NOMINATED) != MAPSTATUS_EXCLUDE_NOMINATED)
    {
        return;
    }
    
    SetTrieValue(g_mapTriemapMAPSTATUS_ENABLED);    
}

public Action:Command_Addmap(clientargs)
{
    if (args 1)
    {
        ReplyToCommand(client"[SM] Usage: sm_nominate_addmap <mapname>");
        return Plugin_Handled;
    }
    
    decl String:mapname[64];
    GetCmdArg(1mapnamesizeof(mapname));

    
    new status;
    if (!GetTrieValue(g_mapTriemapnamestatus))
    {
        ReplyToCommand(client"%t""Map was not found"mapname);
        return Plugin_Handled;        
    }
    
    new NominateResult:result NominateMap(mapnametrue0);
    
    if (result Nominate_Replaced)
    {
        /* We assume already in vote is the casue because the maplist does a Map Validity check and we forced, so it can't be full */
        ReplyToCommand(client"%t""Map Already In Vote"mapname);
        
        return Plugin_Handled;    
    }
    
    
    SetTrieValue(g_mapTriemapnameMAPSTATUS_DISABLED|MAPSTATUS_EXCLUDE_NOMINATED);

    
    ReplyToCommand(client"%t""Map Inserted"mapname);
    LogAction(client, -1"%L inserted map %s."clientmapname);

    return Plugin_Handled;        
}

public Action:Command_Say(clientargs)
{
    if (!client)
    {
        return Plugin_Continue;
    }

    decl String:text[192];
    if (!GetCmdArgString(textsizeof(text)))
    {
        return Plugin_Continue;
    }
    
    new startidx 0;
    if(text[strlen(text)-1] == '"')
    {
        text[strlen(text)-1] = '\0';
        startidx 1;
    }
    
    new ReplySource:old SetCmdReplySource(SM_REPLY_TO_CHAT);
    
    if (strcmp(text[startidx], "nominate"false) == 0)
    {
        if(permission == && GetAdminFlag(GetUserAdmin(client), Admin_Changemap))
        {
            AttemptNominate(client);
        }
        else if(permission == 0)
        {
            AttemptNominate(client);
        }
    }
    
    SetCmdReplySource(old);
    
    return Plugin_Continue;    
}

public Action:Command_Nominate(clientargs)
{
    if (!client)
    {
        return Plugin_Handled;
    }
    
    if (args == 0)
    {
        AttemptNominate(client);
        return Plugin_Handled;
    }
    
    decl String:mapname[64];
    GetCmdArg(1mapnamesizeof(mapname));
    
    new status;
    if (!GetTrieValue(g_mapTriemapnamestatus))
    {
        ReplyToCommand(client"%t""Map was not found"mapname);
        return Plugin_Handled;        
    }
    
    if ((status MAPSTATUS_DISABLED) == MAPSTATUS_DISABLED)
    {
        if ((status MAPSTATUS_EXCLUDE_CURRENT) == MAPSTATUS_EXCLUDE_CURRENT)
        {
            ReplyToCommand(client"[SM] %t""Can't Nominate Current Map");
        }
        
        if ((status MAPSTATUS_EXCLUDE_PREVIOUS) == MAPSTATUS_EXCLUDE_PREVIOUS)
        {
            ReplyToCommand(client"[SM] %t""Map in Exclude List");
        }
        
        if ((status MAPSTATUS_EXCLUDE_NOMINATED) == MAPSTATUS_EXCLUDE_NOMINATED)
        {
            ReplyToCommand(client"[SM] %t""Map Already Nominated");
        }
        
        return Plugin_Handled;
    }
    
    new NominateResult:result NominateMap(mapnamefalseclient);
    
    if (result Nominate_Replaced)
    {
        if (result == Nominate_AlreadyInVote)
        {
            ReplyToCommand(client"%t""Map Already In Vote"mapname);
        }
        else
        {
            ReplyToCommand(client"[SM] %t""Map Already Nominated");
        }
        
        return Plugin_Handled;    
    }
    
    /* Map was nominated! - Disable the menu item and update the trie */
    
    SetTrieValue(g_mapTriemapnameMAPSTATUS_DISABLED|MAPSTATUS_EXCLUDE_NOMINATED);
    
    decl String:name[64];
    GetClientName(clientnamesizeof(name));
    PrintToChatAll("[SM] %t""Map Nominated"namemapname);
    
    return Plugin_Continue;
}

AttemptNominate(client)
{
    SetMenuTitle(g_MapMenu"%T""Nominate Title"client);
    DisplayMenu(g_MapMenuclientMENU_TIME_FOREVER);
    
    return;
}

BuildMapMenu()
{
    if (g_MapMenu != INVALID_HANDLE)
    {
        CloseHandle(g_MapMenu);
        g_MapMenu INVALID_HANDLE;
    }
    
    ClearTrie(g_mapTrie);
    
    g_MapMenu CreateMenu(Handler_MapSelectMenuMENU_ACTIONS_DEFAULT|MenuAction_DrawItem|MenuAction_DisplayItem);

    decl String:map[64];
    
    new Handle:excludeMaps INVALID_HANDLE;
    decl String:currentMap[32];
    
    if (GetConVarBool(g_Cvar_ExcludeOld))
    {    
        excludeMaps CreateArray(ByteCountToCells(33));
        GetExcludeMapList(excludeMaps);
    }
    
    if (GetConVarBool(g_Cvar_ExcludeCurrent))
    {
        GetCurrentMap(currentMapsizeof(currentMap));
    }
    
        
    for (new 0GetArraySize(g_MapList); i++)
    {
        new status MAPSTATUS_ENABLED;
        
        GetArrayString(g_MapListimapsizeof(map));
        
        if (GetConVarBool(g_Cvar_ExcludeCurrent))
        {
            if (StrEqual(mapcurrentMap))
            {
                status MAPSTATUS_DISABLED|MAPSTATUS_EXCLUDE_CURRENT;
            }
        }
        
        /* Dont bother with this check if the current map check passed */
        if (GetConVarBool(g_Cvar_ExcludeOld) && status == MAPSTATUS_ENABLED)
        {
            if (FindStringInArray(excludeMapsmap) != -1)
            {
                status MAPSTATUS_DISABLED|MAPSTATUS_EXCLUDE_PREVIOUS;
            }
        }
        
        AddMenuItem(g_MapMenumapmap);
        SetTrieValue(g_mapTriemapstatus);
    }
    
    SetMenuExitButton(g_MapMenutrue);

    if (excludeMaps != INVALID_HANDLE)
    {
        CloseHandle(excludeMaps);
    }
}

public Handler_MapSelectMenu(Handle:menuMenuAction:actionparam1param2)
{
    switch (action)
    {
        case MenuAction_Select:
        {
            decl String:map[64], String:name[64];
            GetMenuItem(menuparam2mapsizeof(map));        
            
            GetClientName(param1name64);
    
            new NominateResult:result NominateMap(mapfalseparam1);
            
            /* Don't need to check for InvalidMap because the menu did that already */
            if (result == Nominate_AlreadyInVote)
            {
                PrintToChat(param1"[SM] %t""Map Already Nominated");
                return 0;
            }
            else if (result == Nominate_VoteFull)
            {
                PrintToChat(param1"[SM] %t""Max Nominations");
                return 0;
            }
            
            SetTrieValue(g_mapTriemapMAPSTATUS_DISABLED|MAPSTATUS_EXCLUDE_NOMINATED);

            if (result == Nominate_Replaced)
            {
                PrintToChatAll("[SM] %t""Map Nomination Changed"namemap);
                return 0;    
            }
            
            PrintToChatAll("[SM] %t""Map Nominated"namemap);
        }
        
        case MenuAction_DrawItem:
        {
            decl String:map[64];
            GetMenuItem(menuparam2mapsizeof(map));
            
            new status;
            
            if (!GetTrieValue(g_mapTriemapstatus))
            {
                LogError("Menu selection of item not in trie. Major logic problem somewhere.");
                return ITEMDRAW_DEFAULT;
            }
            
            if ((status MAPSTATUS_DISABLED) == MAPSTATUS_DISABLED)
            {
                return ITEMDRAW_DISABLED;    
            }
            
            return ITEMDRAW_DEFAULT;
                        
        }
        
        case MenuAction_DisplayItem:
        {
            decl String:map[64];
            GetMenuItem(menuparam2mapsizeof(map));
            
            new status;
            
            if (!GetTrieValue(g_mapTriemapstatus))
            {
                LogError("Menu selection of item not in trie. Major logic problem somewhere.");
                return 0;
            }
            
            decl String:display[100];
            
            if ((status MAPSTATUS_DISABLED) == MAPSTATUS_DISABLED)
            {
                if ((status MAPSTATUS_EXCLUDE_CURRENT) == MAPSTATUS_EXCLUDE_CURRENT)
                {
                    Format(displaysizeof(display), "%s (%T)"map"Current Map"param1);
                    return RedrawMenuItem(display);
                }
                
                if ((status MAPSTATUS_EXCLUDE_PREVIOUS) == MAPSTATUS_EXCLUDE_PREVIOUS)
                {
                    Format(displaysizeof(display), "%s (%T)"map"Recently Played"param1);
                    return RedrawMenuItem(display);
                }
                
                if ((status MAPSTATUS_EXCLUDE_NOMINATED) == MAPSTATUS_EXCLUDE_NOMINATED)
                {
                    Format(displaysizeof(display), "%s (%T)"map"Nominated"param1);
                    return RedrawMenuItem(display);
                }
            }
            
            return 0;
        }
    }
    
    return 0;
}


CVar: sm_nominate_permission (1 = Nur Admins mit der Mapchange Flag können nominate benutzen, 0 = Alle können nominate benutzen)

Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Toastbrot_290« (28. November 2013, 18:44)


mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

7

Freitag, 22. November 2013, 23:07

Geiler Shit vielen Dank ^^
Kenn mich leider mit den scripts nich aus hab zwar ewig lang drauf gestarrt hab aber doch nich allzu viel gerafft^^
Könnte man das gleiche jetz eig auch mit nem normalen vote machen also ich mein jetz
sm_vote #1 #2 #3 ... map 1 2 3 bla bla bla ... und das dann nach ende des votes sm_setnextmap automatisch zu dem ergebnis des votes gesetzt wird? also halt das ich das dann so im custom admin menü einstellen könnte?

Ka halt irwie statt Change map to halt dann Setnextmap to.... (weis jetz nich obs verständlich ist^^) aber ich mein halt in der votemap.sp

Aber so schon ma vielen Dank ich schreib ma den vote mit nominate um^^

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mR.bRowN« (22. November 2013, 23:25)


HSFighter

Administrator

Beiträge: 1 517

Wohnort: Flensburg

Beruf: Industrieelektroniker

Rootserver vorhanden: Nein

  • Nachricht senden

8

Freitag, 22. November 2013, 23:44

Hi,

sollte funktionieren. Nicht getestet!!!

p.s.
Ich kann deinen Text auch lesen wenn er in normaler Textgröße geschrieben wurde. ;)


Gruß
»HSFighter« hat folgende Datei angehängt:
  • basevotes.sp (12,17 kB - 308 mal heruntergeladen - zuletzt: 29. März 2024, 13:04)



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

9

Samstag, 23. November 2013, 19:03

@HSFighter

nein funktioniert leider nicht alles beim alten Map wird nach dem vote sofort gewechselt trotzdem danke.(Ich auch dachte blos dases dann einfacher zum lesen is ;) )

@Toastbrot

Hab das alles so ins admin menü reingehaun aber irgendwie funktionierts nich so wirklich könntest du evtl ma drüberschaun?

Spoiler Spoiler

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
"Commands"
{
 
   "Mapvotes"
	{
	  "Extend Map"
		{
			
			"cmd"		"sm_extend_time #1"
			"1"
			{
				"type"		"list"
				"title"		"Extend for:"
				"1"		"5"
				"1."		"5 Minutes"
				"2"		"10"
				"2."		"10 Minutes"
				"3"		"15"
				"3."		"15 Minutes"
				"4"		"20"
				"4."		"20 Minutes"
				"5"		"30"
				"5."		"Half an Hour"
				"6"		"45"
				"6."		"45 Minutes"
				"7"		"60"
				"7."		"An Hour"
			}
		}

	

	   "Next Map"
		
		{
			"cmd"		"sm_nominate #1 #2 #3 #4 #5"
			"admin"		"sm_nominate"
			"execute"	"server"
				
			

			"1"
			{
				"title"		"1st Map:"
				"type"		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"
			}
			"2"
			{
				"title"		"2nd Map:"
				"type"		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"
			}
			"3"
			{
				"title"		"3rd Map:"
				"type"		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"
			}

			"4"
			{
				"title"		"4th Map:"
				"type"		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"
			}

			"5"
			{
				"title"		"5th Map:"
				"type"		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"
			}
					
			
			



		}



	"Setze Next Map Nach Vote!"
		{
			"cmd" 		"sm_setnextmap #1"
			"admin"		"sm_setnextmap"
			"execute" 	"server"
			
			"1"
			{
				"title"		"Next Map"
				"type" 		"mapcycle"
				"path"		"/addons/sourcemod/configs/adminmenu_maplist.ini"	
			}
		}


	}

   



}


Also Mapchooser macht halt immer noch nur random maps rein und berücksichtigt die nominations nicht. (oder ich habs natürlich komplett falsch im admin_custommenu eingegeben^^)

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »mR.bRowN« (23. November 2013, 19:08)


mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

10

Montag, 25. November 2013, 17:34

Keiner mehr ne idee? ^^

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

11

Donnerstag, 28. November 2013, 00:09

@Toastbrot

Der Befehl sm_nominate_permission funtioniert leider auch nicht danke trotzdem soweit.^^
Wenn irgendwer noch ne idee hat dann bitte erleuchtet mich^^

12

Donnerstag, 28. November 2013, 13:51

Das ist auch kein Befehl sondern eine CVar. Die funktioniert einwandfrei, hab Ich getestet. Genauso werden die nominations in das normale mapvote menu übernommen. Ich kann dein Problem im Moment echt nicht erkennen und daher auch nicht helfen. (Ich hoffe du hast auch meine modifizierte nominations.sp kompiliert und verwendet sonst kann es nicht funktionieren)

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

13

Donnerstag, 28. November 2013, 18:05

Ups... ^^ tja ich hab leider keine ahnung von kompilieren etc. ^^ Hab jetz angefangen mich da durch zu lesen wie das bei linux server geht ma schaun ob ichs hinkrig ^^ sry wie gesagt kenn mich ja nich aus mit dem script zeuch.

Danke soweit schonma

14

Donnerstag, 28. November 2013, 18:46

Das ist relativ einfach ;) Schau mal hier. Den Quelltext siehst du ja oben bereits. Einfach kopieren, kompilieren und in den sourcemod plugin Ordner.

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

15

Donnerstag, 28. November 2013, 19:36

Hab ich probiert aber da kommen dann 4 errors und dann wirds leider nicht kompiliert versuch grad rauszufinden wie ich die spcomp datei zu laufen bring ^^

mR.bRowN

Anfänger

  • »mR.bRowN« ist der Autor dieses Themas

Beiträge: 10

Rootserver vorhanden: Nein

  • Nachricht senden

16

Donnerstag, 28. November 2013, 22:46

@Toastbrot
Vielen vielen Dank habs jetz hingekrigt funktioniert 1 a^^

@HSFighter
Der Vote wird gestartet und auch beendet aber es wird leider keine map gesetzt. Danke trotzdem