Loading maps
#9

I would just use a filterscript to do this example.
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;
}
Reply


Messages In This Thread
Loading maps - by dominik523 - 11.10.2014, 12:44
Re: Loading maps - by Rudy_ - 11.10.2014, 12:53
Re: Loading maps - by dominik523 - 11.10.2014, 12:55
Re: Loading maps - by Stinged - 11.10.2014, 12:57
Re: Loading maps - by Rudy_ - 11.10.2014, 13:02
Re: Loading maps - by dominik523 - 11.10.2014, 13:05
Re: Loading maps - by highstreetsrp - 11.10.2014, 13:08
Re: Loading maps - by Rudy_ - 11.10.2014, 13:08
Re: Loading maps - by Pottus - 11.10.2014, 13:30
Re: Loading maps - by dominik523 - 11.10.2014, 13:37
Re: Loading maps - by Pottus - 11.10.2014, 13:40
Re: Loading maps - by fonia5 - 11.10.2014, 13:42
Re: Loading maps - by Pottus - 11.10.2014, 13:46
Re: Loading maps - by dominik523 - 11.10.2014, 13:52
Re: Loading maps - by Pottus - 11.10.2014, 13:53
Re: Loading maps - by dominik523 - 11.10.2014, 14:21
Re: Loading maps - by Rudy_ - 12.10.2014, 08:12
Re: Loading maps - by dominik523 - 12.10.2014, 08:23
Re: Loading maps - by Rudy_ - 12.10.2014, 08:24

Forum Jump:


Users browsing this thread: 1 Guest(s)