PDA

View Full Version : Includes


BlueBaron
16/11/2013, 07:46 PM
Well, I decided to make a include for something. My two questions are:


Are includes scripted the same way as filterscripts. If not, can someone explain how.
I got some textdraws, that I want to put within the include. Where should I put them? Under public OnGameModInit()?

Skimmer
16/11/2013, 07:51 PM
Include is a script which makes the scripting easier. It's same with scripting gamemode/filterscript. You can bind it to your script.

Imagine you have a stock function which returns the player name. You want use this on your filterscript and gamemode.
In this moment you can have a private include script (bluebaron.inc) to copy the script there.

Then you can include the file into your script and use the stock function.