01.10.2018, 19:03
TIP: If you don't wanna use hooks, in your main gamemode do in this way:
Place your callbacks in your system.pwn, then use them normally in your gamemode.
DON'T compile the system.pwn, just save it in your /gamemodes/Custom folder (or the name you choose).
Also be sure to not include normal callbacks already existent in your main script. (Such as OnPlayerDeath, OnPlayerSpawn etc. etc.)
I use this system to insert custom maps. I do like:
then in my gm i only add: CreateCustomMap();
Useful if you have a lot of stocks and general publics/functions made by you.
pawn Код:
#include "/Custom/system.pwn"
DON'T compile the system.pwn, just save it in your /gamemodes/Custom folder (or the name you choose).
Also be sure to not include normal callbacks already existent in your main script. (Such as OnPlayerDeath, OnPlayerSpawn etc. etc.)
I use this system to insert custom maps. I do like:
pawn Код:
CreateCustomMap()
{
//Code
}
Useful if you have a lot of stocks and general publics/functions made by you.