29.11.2009, 11:48
So, I'm supposed to do this:
ChocolateInclude
GameMode
?
ChocolateInclude
pawn Код:
public OnGameModeInit()
{
//script
if (funcidx("Chocolate_OnGameModeInit") != -1)
{
return CallLocalFunction("Chocolate_OnGameModeInit", "");
}
return 1;
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Chocolate_OnGameModeInit
forward Chocolate_OnGameModeInit();
pawn Код:
#include <ChocolateInclude>
public OnGameModeInit()
{
//script
return 1;
}