#define MAX_OBJECTS_ON_MAP (10000)
CMD:new ( playerid, params[] )
{
new
map_name [ 60 ];
if( sscanf ( params, "s[60]", map_name ) )
return SendClientMessage ( playerid, -1, "(Incorrect Usage): /new [map name]" );
new
map_string [ 75 ];
format( map_string, sizeof ( map_string ), "map_%s.2kmap", map_name );
new
INI: newMap = INI_Open ( map_string ),
map_data [ 128 ];
INI_SetTag ( newMap, "mapdata" );
for( new o; o < MAX_OBJECTS_ON_MAP; o ++ )
{
format( map_data, sizeof ( map_data ), "%d_object_id", o );
INI_WriteInt ( newMap, map_data, -1 );
}
return true;
}
9983_object_id = -1 |