11.10.2014, 13:30
I would just use a filterscript to do this example.
Quick, dirty, easy and look mom the streamer does most of the cleanup work!
Quick, dirty, easy and look mom the streamer does most of the cleanup work!
pawn Код:
#include <a_samp>
#include <streamer>
new Vehicles[MAX_VEHICLES];
public OnFilterScriptInit()
{
CreateDynamicObject(970, -2000.89941, 122.29980, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 128.00000, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 133.89941, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 139.89941, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 145.39941, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 151.09961, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 157.00000, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 162.59961, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 168.19922, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -2000.89941, 174.00000, 27.20000, 0.00000, 0.00000, 90.00000);
CreateDynamicObject(970, -1995.50000, 122.29980, 27.20000, 0.00000, 0.00000, 90.00000);
Vehicles[CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60)];
}
public OnFilterScriptExit()
{
for(new i = 0; i < MAX_VEHICLES; i++) if(Vehicles[i] > 0) DestroyVehicle(i);
return 1;
}