Posts: 436
Threads: 18
Joined: Jan 2014
Reputation:
0
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.
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
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 !
Posts: 107
Threads: 34
Joined: Apr 2014
Reputation:
0
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.
Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
#include "..\lol\shit.exe"
Posts: 528
Threads: 70
Joined: Nov 2014
Reputation:
0
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?
Posts: 1,498
Threads: 110
Joined: Aug 2013
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