PDA

View Full Version : Adding Filterscripts?



John Wahl
2nd July 2012, 01:52 PM
Okay well in MTA I mapped out a nice house on a custom added Pier right on the west coast of LS.

I then took the file which I had name Pier_House and converted it to SAMP PAWN of course.

Once converted, i made a custom filter Script and added it like this


// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Pier_House");
print("--------------------------------------\n");
CreateObject(6450, 2998.6000976563, -1274.8000488281, 3.9000000953674, 0, 0, 101);
CreateObject(1655, 2931, -1297.5999755859, 10.39999961853, 351, 0, 281.25);
CreateObject(3749, 2937.6999511719, -1296.5, 17.60000038147, 0, 0, 281.25);
CreateObject(3475, 2933.5, -1284.4000244141, 14.300000190735, 0, 0, 11);
CreateObject(3475, 2932.3999023438, -1278.5999755859, 14.300000190735, 0, 0, 10.997314453125);
CreateObject(3475, 2931.3000488281, -1272.6999511719, 14.300000190735, 0, 0, 10.997314453125);
CreateObject(3475, 2933.6000976563, -1269.4000244141, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2939.6000976563, -1268.0999755859, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2945.5, -1267, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2951.3000488281, -1265.9000244141, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2957.1999511719, -1264.8000488281, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2963, -1263.6999511719, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2968.8999023438, -1262.5999755859, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2974.8000488281, -1261.4000244141, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2977.8000488281, -1260.8000488281, 14.300000190735, 0, 0, 280.99731445313);
CreateObject(3475, 2981.1000976563, -1263, 14.300000190735, 0, 0, 191.49731445313);
CreateObject(997, 2939, -1269.5999755859, 12, 0, 0, 281.5);
CreateObject(997, 2939.6999511719, -1273.0999755859, 12, 0, 0, 281.49719238281);
CreateObject(3475, 2982.1999511719, -1268.6999511719, 14.300000190735, 0, 0, 191.49719238281);
CreateObject(3475, 2983.3000488281, -1274.5, 14.300000190735, 0, 0, 191.49719238281);
CreateObject(3475, 2987.1000976563, -1277.0999755859, 14.300000190735, 0, 0, 280.49731445313);
CreateObject(3475, 2993, -1276, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 2998.6999511719, -1275, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3004.5, -1273.9000244141, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3010.3000488281, -1272.8000488281, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3016.1000976563, -1271.6999511719, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3022, -1270.5999755859, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3027.8999023438, -1269.5, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3033.8000488281, -1268.4000244141, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3039.6999511719, -1267.3000488281, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3045.3999023438, -1266.3000488281, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3051.3000488281, -1265.1999511719, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3057.1000976563, -1264.1999511719, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(3475, 3060, -1263.6999511719, 14.300000190735, 0, 0, 280.49194335938);
CreateObject(6300, 3101, -1255.0799560547, 3.9000000953674, 0, 0, 101);
CreateObject(3475, 2944.3000488281, -1304, 14.300000190735, 0, 0, 281.24194335938);
CreateObject(3475, 2950, -1302.9000244141, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2955.8000488281, -1301.8000488281, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2961.6999511719, -1300.6999511719, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2967.3999023438, -1299.5999755859, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2973.1000976563, -1298.5, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2978.8999023438, -1297.4000244141, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2990.3999023438, -1295.0999755859, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2984.6000976563, -1296.3000488281, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 2996.1999511719, -1294, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3002, -1292.8000488281, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3007.8000488281, -1291.6999511719, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3013.6000976563, -1290.5999755859, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3019.3999023438, -1289.5, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3025.1999511719, -1288.4000244141, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3031, -1287.3000488281, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3036.8000488281, -1286.1999511719, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3042.6999511719, -1285.0999755859, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3048.6000976563, -1284, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3054.5, -1282.9000244141, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3060.1999511719, -1281.9000244141, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(3475, 3063.1000976563, -1281.3000488281, 14.300000190735, 0, 0, 281.23901367188);
CreateObject(1250, 3063.1000976563, -1267.5999755859, 13, 0, 0, 11);
CreateObject(3605, 3117.8000488281, -1244, 18.10000038147, 0, 0, 281);
CreateObject(3604, 3114.3999023438, -1272.8000488281, 14.5, 0, 0, 281.75);
CreateObject(3934, 3079, -1251.3000488281, 12, 0, 0, 101);
CreateObject(3928, 3078.6999511719, -1251.1999511719, 12.199999809265, 0, 0, 101);
CreateObject(3934, 3078.8000488281, -1251.1999511719, 12.10000038147, 0, 0, 100.99731445313);
CreateObject(3928, 3078.8999023438, -1251.3000488281, 12.10000038147, 0, 0, 101);
CreateObject(970, 3069, -1280.0999755859, 12.5, 0, 0, 11);
CreateObject(970, 3073.1000976563, -1279.3000488281, 12.5, 0, 0, 10.997314453125);
CreateObject(970, 3077.1999511719, -1278.5, 12.5, 0, 0, 10.997314453125);
CreateObject(970, 3079.6000976563, -1280.1999511719, 12.5, 0, 0, 280.24731445313);
CreateObject(970, 3080.3999023438, -1284.3000488281, 12.5, 0, 0, 280.24475097656);
CreateObject(970, 3082.8000488281, -1285.9000244141, 12.5, 0, 0, 190.74157714844);
CreateObject(970, 3086.8999023438, -1285.0999755859, 12.5, 0, 0, 190.74157714844);
CreateObject(970, 3091, -1284.3000488281, 12.5, 0, 0, 190.74157714844);
CreateObject(970, 3092.6000976563, -1281.9000244141, 12.5, 0, 0, 280.24475097656);
CreateObject(970, 3091.8000488281, -1277.9000244141, 12.5, 0, 0, 280.24475097656);
CreateObject(970, 3093.5, -1275.4000244141, 12.5, 0, 0, 10.997314453125);
CreateObject(970, 3097.6000976563, -1274.5999755859, 12.5, 0, 0, 10.997314453125);
CreateObject(970, 3099.6000976563, -1274.1999511719, 12.5, 0, 0, 10.997314453125);
CreateObject(970, 3102.1000976563, -1275.9000244141, 12.5, 0, 0, 281.24475097656);
CreateObject(970, 3102.8999023438, -1279.9000244141, 12.5, 0, 0, 281.24450683594);
CreateObject(970, 3103.3000488281, -1282, 12.5, 0, 0, 281.24450683594);
CreateObject(970, 3105.8000488281, -1283.6999511719, 12.5, 0, 0, 191.24450683594);
CreateObject(970, 3109.8000488281, -1282.9000244141, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3113.8999023438, -1282.0999755859, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3117.8999023438, -1281.3000488281, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3122, -1280.5, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3126.1000976563, -1279.6999511719, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3130.1999511719, -1278.9000244141, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3134.3000488281, -1278.0999755859, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3138.3999023438, -1277.3000488281, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3140.3999023438, -1276.9000244141, 12.5, 0, 0, 191.23901367188);
CreateObject(970, 3142.3000488281, -1274.4000244141, 12.5, 0, 0, 100.98901367188);
CreateObject(970, 3141.5, -1270.3000488281, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3140.6999511719, -1266.1999511719, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3139.8999023438, -1262.0999755859, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3139.1000976563, -1258, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3138.3000488281, -1253.9000244141, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3137.5, -1249.9000244141, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3136.6999511719, -1245.9000244141, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3135.8999023438, -1241.8000488281, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3135.1000976563, -1237.6999511719, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3134.3000488281, -1233.5999755859, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3133.5, -1229.5, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3132.6999511719, -1225.4000244141, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3131.8999023438, -1221.3000488281, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3129.3999023438, -1219.4000244141, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3125.3000488281, -1220.1999511719, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3121.1999511719, -1221, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3117.1000976563, -1221.8000488281, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3113, -1222.5999755859, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3108.8999023438, -1223.4000244141, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3104.8000488281, -1224.1999511719, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3100.6999511719, -1225, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3096.6000976563, -1225.8000488281, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3094.6999511719, -1226.1999511719, 12.5, 0, 0, 10.986328125);
CreateObject(970, 3093.1000976563, -1228.6999511719, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3093.8999023438, -1232.9000244141, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3094.3000488281, -1234.8000488281, 12.5, 0, 0, 100.986328125);
CreateObject(970, 3092.6000976563, -1237.3000488281, 12.5, 0, 0, 11.236328125);
CreateObject(970, 3088.5, -1238.0999755859, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3084.3999023438, -1238.9000244141, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3080.3000488281, -1239.6999511719, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3076.1999511719, -1240.5, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3072.1000976563, -1241.3000488281, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3068, -1242.0999755859, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3063.8999023438, -1242.9000244141, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3061.8999023438, -1243.3000488281, 12.5, 0, 0, 11.233520507813);
CreateObject(970, 3061.8000488281, -1253.9000244141, 12.5, 0, 0, 100.73352050781);
CreateObject(970, 3060.1999511719, -1245.6999511719, 12.5, 0, 0, 100.72814941406);
CreateObject(970, 3061, -1249.8000488281, 12.5, 0, 0, 100.72814941406);
CreateObject(970, 3062.5, -1258, 12.5, 0, 0, 100.72814941406);
CreateObject(970, 3063.1999511719, -1261.0999755859, 12.5, 0, 0, 100.72814941406);
CreateObject(3633, 2931, -1268.8000488281, 12.39999961853, 0, 0, 12);
CreateObject(3633, 2931, -1268.8000488281, 13.300000190735, 0, 0, 11.9970703125);
CreateObject(3633, 2931, -1268.8000488281, 14.199999809265, 0, 0, 11.9970703125);
CreateObject(3633, 2931, -1268.8000488281, 15.10000038147, 0, 0, 11.9970703125);
CreateObject(3633, 2931, -1268.8000488281, 16, 0, 0, 11.9970703125);
CreateObject(3633, 2932.3000488281, -1268.3000488281, 12.39999961853, 0, 0, 11.9970703125);
CreateObject(3633, 2933.8000488281, -1268, 12.39999961853, 0, 0, 11.9970703125);
CreateObject(3633, 2932.3000488281, -1268.3000488281, 13.300000190735, 0, 0, 11.9970703125);
CreateObject(3633, 2933.8000488281, -1268, 13.300000190735, 0, 0, 11.9970703125);
CreateObject(3633, 2932.3000488281, -1268.3000488281, 14.199999809265, 0, 0, 11.9970703125);
CreateObject(971, 2937.1999511719, -1296.9000244141, 15.39999961853, 0, 0, 280);
CreateObject(2395, 2935.8999023438, -1289.9000244141, 15.199999809265, 0, 90, 280);
CreateObject(2395, 2935.8999023438, -1289.9000244141, 18.39999961853, 0, 90, 279.99755859375);
CreateObject(2395, 2937.8999023438, -1301.1999511719, 15.10000038147, 0, 90, 279.99755859375);
CreateObject(2395, 2937.8999023438, -1301.1999511719, 18.799999237061, 0, 90, 279.99755859375);
return 1;
#endif

This was then compiled with 0 errors and saved as an AMX file and PWN file in my filterscripts folder.

I then opened my server.cfg and added Pier_House to the list((exact same name))

I saved that and started my server.

I connected to my test server through samp and went to the location.

The whole custom map wasn't even there when I did it all

How to make it load in????

Luke_Inactive
2nd July 2012, 04:34 PM
ummmm john, whats your question? you explained everything but dont know what the problem is

John Wahl
2nd July 2012, 04:45 PM
Lmao I fixed it sorry

John Wahl
2nd July 2012, 11:42 PM
Anybody know this??

Antonio_Grella
3rd July 2012, 01:19 AM
you need to start the filter script. Some arent on by default.

John Wahl
3rd July 2012, 02:39 AM
I'm so retarted

On top it says
"//uncomment the next line if it is a filterscript
//#define FILTERSCRIPT"

I uncommented this and added another set of brackets and it loaded up on start

I need I confirm that this won't get in Antonio's way with his prison

Panky
3rd July 2012, 04:53 AM
First thing, remove GameModeInIt and GameModeExit from the FS. Then make sure your new .amx is in filterscripts folder and open server.cfg. In there, add the line 'filterscript *name of FS*'. Make sure you have a seperate GM loaded. Then run samp-server.exe. Go in game and to the location of mapping.

Panky
3rd July 2012, 07:19 AM
First thing, remove GameModeInIt and GameModeExit from the FS. Then make sure your new .amx is in filterscripts folder and open server.cfg. In there, add the line 'filterscript *name of FS*'. Make sure you have a seperate GM loaded. Then run samp-server.exe. Go in game and to the location of mapping.

Antonio_Grella
3rd July 2012, 01:08 PM
the base im making and the house im donating for to have out there aswell. hopefully it doesnt conflict with either.

John Wahl
3rd July 2012, 03:51 PM
Antonio send me your fs for those so I can check if they will hit

ChinŽ
4th July 2012, 03:21 AM
Just include the filterscript at the servers settings notepad. Open that and typ in the name of the filterscript you want to load in one of those lines. Under gamemode i think. Did this long aggo.

John Wahl
4th July 2012, 01:27 PM
Lol bro I said I got it

I had that part but I never took the "//" off line 3

Nightmaid
4th July 2012, 03:22 PM
Answered, please do not post on this thread anymore.