[FilterScript] Destroy Road Objects [0.3d]
#1

The script will destroy some road objects (traffic lights, poles, lanterns, fountains).

Timer: 10 seconds
Radius: 300 meter

Source:
Код:
#include <a_samp>
#define local new

local objects[] = {1211,1223,1226,1231,1232,1283,1284,1290,1294,1295,1296,1297,1298,1315,1350,1351,1352,1366,1568,3460,3463,3516,3853,3855};

public OnFilterScriptInit()
{
	SetTimer("DestroyBadObjects", 10000, 1);
	return 1;
}

forward DestroyBadObjects();
public DestroyBadObjects()
{
	for(new i=0; i<MAX_PLAYERS; i++)
 	{
  		for(local ob=0; ob<sizeof(objects);ob++)
		{
   			local Float:px,Float:py,Float:pz;
			GetPlayerPos(i, px, py, pz);
		        RemoveBuildingForPlayer(i, objects[ob], px, py, pz, 300.0);
		}
	}
	return 1;
}
Author - Soup_Mc a.k.a SeeeCa

PS - Sorry for my bad english, i'm from Russia.
Reply


Messages In This Thread
Destroy Road Objects [0.3d] - by seeeca - 13.09.2011, 19:59
Re: Destroy Road Objects [0.3d] - by Rapgangsta - 13.09.2011, 20:21
Re: Destroy Road Objects [0.3d] - by wouter0100 - 13.09.2011, 21:19
Re: Destroy Road Objects [0.3d] - by Kar - 13.09.2011, 23:46
Re: Destroy Road Objects [0.3d] - by iggy1 - 13.09.2011, 23:57
Re: Destroy Road Objects [0.3d] - by Kaperstone - 14.09.2011, 15:05
AW: Destroy Road Objects [0.3d] - by Pablo Borsellino - 14.09.2011, 15:23
Re: Destroy Road Objects [0.3d] - by MaTrIx4057 - 14.09.2011, 18:38
Re: Destroy Road Objects [0.3d] - by |_ⒾⓇⓄN_ⒹⓄG_| - 14.09.2011, 19:50
Re: Destroy Road Objects [0.3d] - by DRIFT_HUNTER - 14.09.2011, 20:44

Forum Jump:


Users browsing this thread: 2 Guest(s)