First commit of the rewrite
Doesn't build on windows for some retarded reason
This commit is contained in:
31
dlls/hamsandwich/amxx_api.cpp
Normal file
31
dlls/hamsandwich/amxx_api.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include <extdll.h>
|
||||
#include "sdk/amxxmodule.h"
|
||||
#include "NEW_Util.h"
|
||||
|
||||
edict_t *NEW_FirstEdict;
|
||||
bool NEW_Initialized;
|
||||
|
||||
|
||||
extern AMX_NATIVE_INFO RegisterNatives[];
|
||||
|
||||
int ReadConfig(void);
|
||||
|
||||
void OnAmxxAttach(void)
|
||||
{
|
||||
printf("LOLOL");
|
||||
if (ReadConfig() > 0)
|
||||
{
|
||||
MF_AddNatives(RegisterNatives);
|
||||
}
|
||||
}
|
||||
|
||||
void HamCommand(void);
|
||||
|
||||
void OnPluginsLoaded(void)
|
||||
{
|
||||
NEW_Initialize(INDEXENT(0));
|
||||
}
|
||||
void OnMetaAttach(void)
|
||||
{
|
||||
REG_SVR_COMMAND("ham", HamCommand);
|
||||
}
|
||||
Reference in New Issue
Block a user