SA-MP Forums Archive
Including - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Including (/showthread.php?tid=578263)



Including - ShoortyFl - 18.06.2015

I'm wondering if its possible, i want to make anti cheat but in a different module from the original server pwn file, is it possible to include that other .pwn file in gamemode that im using to start server ?


Re: Including - Alex1990 - 18.06.2015

Quote:
Originally Posted by ShoortyFl
Посмотреть сообщение
I'm wondering if its possible, i want to make anti cheat but in a different module from the original server pwn file, is it possible to include that other .pwn file in gamemode that im using to start server ?
Read this


Re: Including - Onfroi - 18.06.2015

Quote:
Originally Posted by Alex1990
Посмотреть сообщение
Read this
That's not what OP asked for.


Quote:
Originally Posted by ShoortyFl
Посмотреть сообщение
I'm wondering if its possible, i want to make anti cheat but in a different module from the original server pwn file, is it possible to include that other .pwn file in gamemode that im using to start server ?
Yes, you could make it a filterscript or you could save the .pwn file in the server's 'include' folder and add this to your gamemode:
pawn Код:
#include "../include/(name of script).pwn"



Re: Including - ShoortyFl - 18.06.2015

Thanks, Onfroi, it works, but the problem is now, when u compile the gamemode with the included module, the module will give errors such colors are not defined and other things, how can i fix that ?