10.02.2011, 19:22
(
Последний раз редактировалось [P4]; 11.02.2011 в 17:22.
)
THIS IS SOLVED.
Hello everyone,
So here's the thing.
I'm using/editing, well more editing(Learning) than using, Grim_'s Sumo Gamemode.And, you've to create objects, and different spawn positions for every map...
And the code for spawns is something like:
And the map part looks like:
..So what i wanted is to (somehow) read the map objects and spawns, from a .txt file in scriptfiles.Because like this(i have 12 maps at the moment) the code is really messy and takes long time to find what i was looking for.And yes, i've looked at the wiki and searched around but had no success.
Thanks in advance.
Hello everyone,
So here's the thing.
I'm using/editing, well more editing(Learning) than using, Grim_'s Sumo Gamemode.And, you've to create objects, and different spawn positions for every map...
And the code for spawns is something like:
pawn Код:
new Float:SumoSpawns[MAX_MAPS][MAX_PLAYERS][4] =
{
{
{x, y, z, blah}, //Spawns for Map1
{x, y, z, blah},
.....
},
{
{x, y, z, blah}, //Spawns for Map2
{x, y, z, blah},
.....
},
And so on...
pawn Код:
LoadMapObjects()
{
switch(iMap)
{
case 0:
{
CreateObject{Blaaaaah}; //Map1
CreateObject{Blaaaaah};
}
case 1:
{
CreateObject{Blaaaaah}; //Map2
CreateObject{Blaaaaah};
}
}
}
Thanks in advance.