Master
Location: Schwelm
Occupation: Immobilien-Verwalter / Serveradministrator
wcf.user.option.userOption53: Nein
This post has been edited 2 times, last edit by "TempletonPeck" (Jul 27th 2011, 11:47pm)
Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
/* For the "mapchooser" plugin */ "mapchooser" { stock GetRealClientCount( bool:inGameOnly = true ) { new count = 0; for( new i = 1; i <= GetMaxClients(); i++ ) { if( ( ( inGameOnly ) ? IsClientInGame( i ) : IsClientConnected( i ) ) && !IsFakeClient( i ) ) { count++; } } return count; if (count < 5); { "file" "votemaplist.txt" } else if (count > 5); { "file" "votemaplist2.txt" } } |
Master
Location: Schwelm
Occupation: Immobilien-Verwalter / Serveradministrator
wcf.user.option.userOption53: Nein
Ist jetzt nur eine Vermutung, aber "invalid token" könnte der Bindesstrich bei "css-public" sein. Ich erinnere mich dunkel, dass ich damit auch schon mal Probleme hatte und verwende statt dessen immer einen Unterstrich.L 07/28/2011 - 12:34:20: Info (map "de_cbble") (file "errors_20110728.log")
L 07/28/2011 - 12:34:20: [SM] Could not parse file "/home/gs/css-public/orangebox/cstrike/addons/sourcemod/configs/maplists.cfg"
Master
Location: Schwelm
Occupation: Immobilien-Verwalter / Serveradministrator
wcf.user.option.userOption53: Nein
Super Moderator
Location: Österreich
Occupation: IT Systemadministrator
wcf.user.option.userOption53: Ja
Source code |
|
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 |
stock GetRealClientCount(bool:inGameOnly = true) { new clients = 0 for(new i = 1; i <= MaxClients; i++) { if(((inGameOnly) ? IsClientInGame(i) : IsClientConnected(i)) && !IsFakeClient(i)) { clients++ } } return clients } public OnConfigsExecuted() { if (GetRealClientCount() < 5) { if (ReadMapList(g_MapList, g_mapFileSerial, "mapchooser", MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER) != INVALID_HANDLE) } else { if (ReadMapList(g_MapList, g_mapFileSerial, "mapchooser2", MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER) != INVALID_HANDLE) } |
This post has been edited 9 times, last edit by "MadMakz" (Aug 2nd 2011, 5:15pm)