09.08.2012, 13:30
I've decided to have some fun-test moment, so here's the (main) code if other's are interested as well:
Pictures:
http://zbsamp.info/slike/images/6G71W.png
http://zbsamp.info/slike/images/mPhca.png
http://zbsamp.info/slike/images/2VQc0.png
http://zbsamp.info/slike/images/JcX5h.png
It will create 796500 streamed glass-objects over whole San Andreas map on the height which is defined with with HEIGHT define (700.0 in my code).
pawn Код:
#include "a_samp"
#include "streamer"
#define DEFAULT_WORLD_ID (-1)
#define DEFAULT_INTERIOR_ID (-1)
#define NO_PLAYERID (-1)
#define MAX_DISTANCE_OBJECT (400.0)
#define HEIGHT (700.0)
public OnGameModeInit()
{
/*
-3000.0 -> 3000.0 (6000.0)
offX = +4.0
-3000.0 -> 3000.0 (6000.0)
offY = +11.3
*/
for(new a = 0; a < 1500; a++)
{
for(new b = 0; b < 531; b++)
CreateDynamicObject(3851, -3000.0 + (4.0 * a), -3000.0 + (11.3 * b), HEIGHT, 0.0, 90.0, 0.0, DEFAULT_WORLD_ID, DEFAULT_INTERIOR_ID, NO_PLAYERID, MAX_DISTANCE_OBJECT);
}
return true;
}
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
return SetPlayerPos(playerid, fX, fY, HEIGHT + 3.0);
http://zbsamp.info/slike/images/6G71W.png
http://zbsamp.info/slike/images/mPhca.png
http://zbsamp.info/slike/images/2VQc0.png
http://zbsamp.info/slike/images/JcX5h.png
It will create 796500 streamed glass-objects over whole San Andreas map on the height which is defined with with HEIGHT define (700.0 in my code).