03.10.2011, 14:53
Hi Community.
I wanted to replace OnGameModeInit with mine OnGameModeInit for an include and look like this
no errors or somethink but does not work
can anyone help me ?
I wanted to replace OnGameModeInit with mine OnGameModeInit for an include and look like this
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#endif
#define OnGameModeInit Test
public Test()
{
print("Server shuting down for a test!");
SendRconCommand("exit");
return CallRemoteFunction("OnGameModeInit", "");
}
can anyone help me ?