04.10.2012, 05:08
Amateurs.
#define FILTERSCRIPT is useful ONLY if used aswell with "#if defined FILTERSCRIPT" as seen in the blank script.
To translate a gamemode into FS I think only think you need to do is rename "OnGameModeInit" to "OnFilterScriptInit", "OnGameModeExit" to "OnFilterScriptExit", and move all from "main()" to OnFilterScriptInit, and then remove main() function.
Please, do not post if you have no idea what you are talking about.
#define FILTERSCRIPT is useful ONLY if used aswell with "#if defined FILTERSCRIPT" as seen in the blank script.
pawn Код:
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
Please, do not post if you have no idea what you are talking about.