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



Possible ? - Maximun - 24.10.2015

Hi all, so today i wanted to know if it's possible to put our mapping in an include, if yes, can you help me please.


Re: Possible ? - PrO.GameR - 24.10.2015

Yeah,
Make a file called mappings.pwn, put it gamemodes folder

include it like this //thanks to Satori_Komeiji I learnt it's possible access it like that <<
#include "../gamemodes/mappings.pwn"

And maybe hook it to gamemodeinit ? make a function and call ? your choice !


Re: Possible ? - OMonger - 24.10.2015

You can also make a filterscript, which can auto update every restart.

Make a filter script, put it under FilterscriptInit and make sure you have it in your server cfg.


Re : Possible ? - StreetRP - 24.10.2015

Quote:
in an include
....


Re: Possible ? - AbyssMorgan - 24.10.2015

PHP код:
#include "..\lol\shit.exe" 



Re: Possible ? - fuckingcruse - 24.10.2015

More easy.. make 1 script .. and save as it in pawno > includes .. in script.. #include <name> like I saved it as map.. so #include <map>… easy ain't it?


Re: Possible ? - Crystallize - 24.10.2015

Quote:
Originally Posted by fuckingcruse
Посмотреть сообщение
More easy.. make 1 script .. and save as it in pawno > includes .. in script.. #include <name> like I saved it as map.. so #include <map>… easy ain't it?
False.
#include <map> , then you would have to put the map in the includes folder and name it as .inc.
Do as those guys above said
#include ../gamemodes/mapname