why would it matter were u add them?
you can just make it a command
|
|

This is exactly the same way as adding models, you have to Gzip the maps. If you need the maps get them from SWAT's tutorial or dump them from a client. I'm not telling you where to add them, use your brain.
I haven't tested this myself but i assume it should work.
Code:public void addMaps() { for(int MapIndex = 0; MapIndex < 5000; MapIndex++) { byte[] abyte0 = getMaps(MapIndex); if(abyte0 != null && abyte0.length > 0) { decompressors[4].method234(abyte0.length, abyte0, MapIndex); pushMessage("Maps added successfully!", 0, ""); } } } public byte[] getMaps(int Index) { try { File Map = new File("./Maps/"+Index+".gz"); byte[] aByte = new byte[(int)Map.length()]; FileInputStream fis = new FileInputStream(Map); fis.read(aByte); pushMessage("aByte = ["+aByte+"]!", 0, ""); fis.close(); return aByte; } catch(Exception e) { return null; } }

why would it matter were u add them?
you can just make it a command
looks like it should work now just got to find 474+ maps gzipped or find 474+ maps and gzip them myself

Non-renamed
Code:public void maps() { for(int MapIndex = 0; MapIndex < 5000; MapIndex++) { byte[] abyte0 = GetMap(MapIndex); if(abyte0 != null && abyte0.length > 0) { aClass14Array970[4].method234(abyte0.length, abyte0, (byte)2, MapIndex); } } } public byte[] GetMap(int Index) { try { File Map = new File("./maps/"+Index+".gz"); byte[] aByte = new byte[(int)Map.length()]; FileInputStream Fis = new FileInputStream(Map); Fis.read(aByte); method77("aByte = ["+aByte+"]!", 0, "", aBoolean991); Fis.close(); return aByte; } catch(Exception e) { return null; } }

if(s.startswith("::addmaps"){
addMaps();
}
I assume it works as the command, I haven't tested it.
| « Vesta longsword Special Release | Attack Interfaces » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |