SA-MP Forums Archive
please help - 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: please help (/showthread.php?tid=342435)



please help - Toby_Manley - 13.05.2012

hello how do i inbed a filterscript into my gamemode? please help



thanks
Toby-


Re: please help - thefatshizms - 13.05.2012

Quote:
Originally Posted by Toby_Manley
Посмотреть сообщение
hello how do i inbed a filterscript into my gamemode? please help



thanks
Toby-
go to server.cfg then go to filterscripts and add the name of the filterscipt to that line


Re: please help - Toby_Manley - 13.05.2012

no i mean into the gamemode instead of having them in the filterscript folder i mean inbed them into the gamemode.pwn


Re: please help - Jstylezzz - 13.05.2012

Well, just copy/paste it in under the right callbacks, what is under onfilterscriptinit goes under ongamemodeinit in your gamemode, and so on with all other things.
It requires some patience and you have to watch waht you are doing..

EDIT: Better use Yuryfury's solution, it's way easier


Re: please help - Yuryfury - 13.05.2012

Alternatively, copy the filterscript into a blank notepad document, save it as a .inc (include file), put it in Pawno/includes and add #include <include_name> into the gamemode.