11.10.2014, 13:05
Hmm, how about this?
So I'm just placing text from map1.txt somewhere in the script. I should also save all objects into one array and after using the object, I could just delete all of them. Does that sound good?
pawn Код:
public OnGameModeInit() // only for example
{
#include Maps/map1.txt
return 1;
}
// map1.txt
CreateVehicle(469,1656.7000000,-1348.5000000,159.8000000,270.0000000,245,245,10); //Sparrow
CreateVehicle(469,1656.7000000,-1337.8000000,159.8000000,270.0000000,245,245,10); //Sparrow
CreateDynamicObject(4602,1940.8000000,-1338.2000000,87.5000000,0.0000000,0.0000000,0.0000000); //object(laskyscrap4_lan) (2)
CreateDynamicObject(3095,1946.2000000,-1354.1000000,158.7000000,0.0000000,180.0000000,0.0000000); //object(a51_jetdoor) (1)
...