C-подобный:#include <sourcemod> public OnPluginStart() { new g_mapFileSerial = -1; new arraySize = ByteCountToCells(33); new Handle:g_MapList = CreateArray(arraySize); if (ReadMapList(g_MapList, g_mapFileSerial, "default", MAPLIST_FLAG_CLEARARRAY|MAPLIST_FLAG_MAPSFOLDER) != INVALID_HANDLE) { if (g_mapFileSerial == -1) { LogError("Unable to create a valid map list."); } decl String:sMap[256]; GetArrayString(g_MapList, GetRandomInt(0, GetArraySize(g_MapList)-1), sMap, sizeof(sMap)); ForceChangeLevel(sMap, "Random map!"); } }
Ты такой прикольный.