Quick Question
#1

In filterscripts, can you have "addobject"s?
If so, I put them under where?


Thank you. :P
Reply
#2

Technically you can use any function inside any callback, but in your case you will most likely want it in "OnFilterscriptInit". So yes you can use in a Filterscript.
Reply
#3

But don't forget, when you reload the filterscript, if you DON'T destroy the created objects, they won't be deleted!
Reply
#4

Quote:
Originally Posted by Austin
Посмотреть сообщение
But don't forget, when you reload the filterscript, if you DON'T destroy the created objects, they won't be deleted!
Good point unless you use a streamer.
Reply
#5

Er, the objects wont show up?

I have it set up as..
Код:
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" B.A.S.E Jump Locations");
	print("--------------------------------------\n");
        -Objects are all in here-
        return 1;
}
I just made a new FS and put the info under OnFliterscriptInIt.


I use incognitos streamer, I just like to keep organized, so I put all the B.A.S.E locations in one filterscript, DM locations in another, etc.


EDIT-
Here's a pastebin of what I have, if it'll help:
http://pastebin.com/MV1UR1V8
Reply
#6

You will have to show the actual code lol incase theres a mistake. Because it should work if its done as you say.

EDIT: didnt see pastebin looking now
Shold work try it like this
pawn Код:
#include <a_samp>
#include <streamer>

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" B.A.S.E Jump Locations");
    print("--------------------------------------\n");
    CreateDynamicObject(10794,194.27914400,323.59640500,3.78570600,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(3873,226.78576700,324.18512000,30.72787300,0.00000000,0.00000000,270.85940000); //
    CreateDynamicObject(9584,119.06833600,323.60592700,23.22242400,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(2634,135.82458500,325.93087800,21.13258000,0.00000000,0.00000000,270.18150000); //
    CreateDynamicObject(3873,226.88574200,324.68499800,63.90285500,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.88574200,324.83496100,95.80286400,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.88574200,325.00991800,128.45288100,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.88574200,325.03491200,160.70288100,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,195.40243500,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,197.73632800,324.16012600,30.72787300,0.00000000,0.00000000,259.60940000); //
    CreateDynamicObject(993,179.46846000,327.42337000,14.97160400,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(10795,191.97456400,323.87362700,14.05156900,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,179.46846000,320.49841300,14.97160400,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,179.46846000,320.49841300,17.34660100,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,179.46846000,327.42330900,17.34660100,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.89341700,320.49841300,14.97160400,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.89341700,320.52352900,17.32158500,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.89341700,327.42330900,17.32158500,0.00000000,0.00000000,0.00000000); //
    CreateDynamicObject(993,177.81752000,326.94842500,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(993,177.81752000,324.64868200,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(993,177.81752000,322.39904800,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.91737400,322.39904800,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.91737400,324.74908400,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(993,172.91737400,326.97390700,18.44656800,270.72260000,0.00000000,0.00000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,228.07739300,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,260.92767300,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,294.12762500,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,326.97760000,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,359.57757600,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,392.10250900,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,424.77740500,0.00000000,0.00000000,292.50000000); //
    CreateDynamicObject(3873,226.69461100,324.44973800,457.20236200,0.00000000,0.00000000,292.50000000); //
    return 1;
}
Thats all you need basicaly.
Reply
#7

Ha, wow, I set the name of the filterscript wrong in my server.cfg ;]

Thanks for the help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)