SA-MP Forums Archive
RemoveBuilding - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: RemoveBuilding (/showthread.php?tid=445755)



RemoveBuilding - Trucker[UK] - 22.06.2013

Hey Guys,

I am having a problem with RemoveBuildingForPlayer, i have scripted it in and it compiles just fine no errors or warnings, but when i go into game they have not been removed.

Can anyone help (I have looked on samp forums)

Thanks


Respuesta: RemoveBuilding - JustBored - 22.06.2013

Show us the code where you put that function, remember that you have to put it in OnPlayerConnect.


Re: RemoveBuilding - Trucker[UK] - 22.06.2013

Code:
#define FILTERSCRIPT

#include <a_samp>
#include <RemoveBuilding>

#if defined FILTERSCRIPT

public OnPlayerConnect(playerid)
{
	RemoveBuilding(playerid, 3627, 2220.78125, -2261.05469, 15.90625, 200.0);
	RemoveBuilding(playerid, 3569, 2234.39063, -2244.82812, 14.9375, 200.0);
	RemoveBuilding(playerid, 3569, 2219.42188, -2259.52344, 14.88281, 200.0);
	RemoveBuilding(playerid, 1226, 2217.85913, -2250.9563, 12.99519, 200.0);
	RemoveBuilding(playerid, 1226, 2241.45337, -2241.58252, 14.9827, 200.0);
	RemoveBuilding(playerid, 3578, 2235.16406, -2231.85156, 13.25781, 200.0);
	RemoveBuilding(playerid, 3569, 2204.63281, -2274.41406, 14.9375, 200.0);
	RemoveBuilding(playerid, 3574, 2193.25781, -2286.28906, 14.8125, 200.0);
	RemoveBuilding(playerid, 5126, 2197.1875, -2325.53906, 27.53125, 200.0);
	RemoveBuilding(playerid, 3627, 2169.11719, -2276.58594, 15.90625, 200.0);
	RemoveBuilding(playerid, 3578, 2165.07031, -2288.96875, 13.25781, 200.0);
	RemoveBuilding(playerid, 3574, 2165.29688, -2317.5, 14.8125, 200.0);
	RemoveBuilding(playerid, 3574, 2179.92188, -2334.85156, 14.8125, 200.0);
	RemoveBuilding(playerid, 3578, 2194.47656, -2242.875, 13.25781, 200.0);
	RemoveBuilding(playerid, 3574, 2183.17188, -2237.27344, 14.8125, 200.0);
	RemoveBuilding(playerid, 3627, 2195.08594, -2216.84375, 15.90625, 200.0);
	RemoveBuilding(playerid, 5244, 2198.85156, -2213.92187, 14.88281, 200.0);
	RemoveBuilding(playerid, 3574, 2193.0625, -2196.64062, 15.10156, 200.0);
	RemoveBuilding(playerid, 3574, 2174.64063, -2215.65625, 15.10156, 200.0);
	RemoveBuilding(playerid, 11010, -2113.32031, -186.79687, 40.28125, 200.0);
	RemoveBuilding(playerid, 11009, -2128.53906, -142.84375, 39.14063, 200.0);
	RemoveBuilding(playerid, 11011, -2144.35156, -132.96094, 38.33594, 200.0);
	RemoveBuilding(playerid, 1278, -2137.61719, -110.9375, 48.35156, 200.0);
	RemoveBuilding(playerid, 11091, -2133.55469, -132.70312, 36.13281, 200.0);
	RemoveBuilding(playerid, 1684, 1427.17041, 1092.40161, 12.44765, 200.0);
	RemoveBuilding(playerid, 1338, 1429.87415, 1078.08252, 10.6093, 200.0);
	RemoveBuilding(playerid, 1219, 1443.83069, 1099.14819, 10.28924, 200.0);
	RemoveBuilding(playerid, 1219, 1449.45618, 1098.74866, 10.28924, 200.0);
	RemoveBuilding(playerid, 1219, 1437.11267, 1100.27466, 10.28924, 200.0);
	RemoveBuilding(playerid, 8073, 1486.97656, 1104.57031, 13.82031, 200.0);
	RemoveBuilding(playerid, 1365, 1495.38281, 1007.78906, 10.96094, 200.0);
	RemoveBuilding(playerid, 1331, 1478.7113, 967.01837, 10.95312, 200.0);
	RemoveBuilding(playerid, 1331, 1478.73047, 964.3559, 11.04847, 200.0);
	RemoveBuilding(playerid, 1420, 1477.8606, 940.49219, 10.19057, 200.0);
	RemoveBuilding(playerid, 1358, 1379.03125, 980.76563, 11.07031, 200.0);
	RemoveBuilding(playerid, 1365, 1379.14844, 989.30469, 10.96094, 200.0);
	RemoveBuilding(playerid, 1365, 1379.14844, 997.10938, 10.96094, 200.0);
	RemoveBuilding(playerid, 1420, 1432.28027, 1013.32867, 10.64687, 200.0);
	RemoveBuilding(playerid, 1420, 1435.75684, 1013.28058, 10.40981, 200.0);
	RemoveBuilding(playerid, 1219, 1444.98645, 1012.51416, 10.28924, 200.0);
	RemoveBuilding(playerid, 1219, 1449.7959, 1011.95355, 10.28924, 200.0);
	RemoveBuilding(playerid, 1438, 1475.59656, 935.45038, 10.35201, 200.0);
	RemoveBuilding(playerid, 1365, 1392.21875, 939.71875, 10.96094, 200.0);
	RemoveBuilding(playerid, 1219, 1391.58118, 948.4967, 10.35507, 200.0);
	RemoveBuilding(playerid, 1219, 1391.70581, 952.89905, 10.32049, 200.0);
	RemoveBuilding(playerid, 1438, 1384.32178, 1100.01196, 10.35201, 200.0);
	RemoveBuilding(playerid, 1420, 1384.07666, 1111.18652, 10.34914, 200.0);
	RemoveBuilding(playerid, 1420, 1384.21057, 1124.85059, 10.39732, 200.0);
	RemoveBuilding(playerid, 1420, 1384.26563, 1138.35059, 10.69015, 200.0);
	RemoveBuilding(playerid, 1420, 1383.83423, 1151.53027, 10.20809, 200.0);
	RemoveBuilding(playerid, 1338, 1405.76526, 1126.35571, 10.19183, 200.0);
	RemoveBuilding(playerid, 1431, 1409.26709, 1125.71899, 10.4063, 200.0);
	RemoveBuilding(playerid, 1420, 1427.17786, 1127.06921, 10.24508, 200.0);
	RemoveBuilding(playerid, 1331, 1464.75891, 1081.56592, 10.2597, 200.0);
	return 1;
}
#endif



Re: RemoveBuilding - horsemeat - 22.06.2013

wow I did not even know you could do that that is going to be helpful thanks


Re: RemoveBuilding - Trucker[UK] - 22.06.2013

Quote:
Originally Posted by horsemeat
View Post
wow I did not even know you could do that that is going to be helpful thanks
ok, but it does not remove the building for the player


Respuesta: RemoveBuilding - JustBored - 22.06.2013

Remove the #if defined FILTERSCRIPT why did you put it? it isn't necesary for that callback, for filterscripts you just have to put #define FILTERSCRIPT and thats it.


Re: RemoveBuilding - horsemeat - 22.06.2013

wait why is it RemoveBuilding and not RemoveBuildingForPlayer


Re: RemoveBuilding - Trucker[UK] - 22.06.2013

I removed it and went into my server and still did not remove


Re: RemoveBuilding - dannyk0ed - 22.06.2013

Place those under
pawn Code:
OnFilterScriptInit
That should work.


Re: Respuesta: RemoveBuilding - horsemeat - 22.06.2013

Quote:
Originally Posted by JustBored
View Post
Show us the code where you put that function, remember that you have to put it in OnPlayerConnect.
will it not work if you put this code some where else example under a command