Function Does not work please help
#1

Hi Community.
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", "");
}
no errors or somethink but does not work
can anyone help me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)