02.06.2014, 12:19
Thanks!
I tried to make something like this, but it crashes the server if i try to open 'gamemodes/any.pwn' (I think we can only open files inside scriptfiles folder, probably it crashed because there wasn't any folder named filterscripts) So, I tried it other way around. I made a .pwn file and wrote the includes (using fwrite in the script) to that once, and that same process of writing the main CMD string will continue. Using this, the user can straight away compile and put the .amx in the filterscripts folder. But still the user need to put the TeleportPlayer stock into that filterscript. Now, I'm actually trying to find how can I even the cancel the need of copy-pasting the stock. I have a thought in my mind, just trying to see if it'll work.
I tried to make something like this, but it crashes the server if i try to open 'gamemodes/any.pwn' (I think we can only open files inside scriptfiles folder, probably it crashed because there wasn't any folder named filterscripts) So, I tried it other way around. I made a .pwn file and wrote the includes (using fwrite in the script) to that once, and that same process of writing the main CMD string will continue. Using this, the user can straight away compile and put the .amx in the filterscripts folder. But still the user need to put the TeleportPlayer stock into that filterscript. Now, I'm actually trying to find how can I even the cancel the need of copy-pasting the stock. I have a thought in my mind, just trying to see if it'll work.