CheatMenuSA/tests/Test.cpp

32 lines
385 B
C++
Raw Normal View History

#include "plugin.h"
2021-02-15 03:49:01 -05:00
#include "CHud.h"
using namespace plugin;
2021-02-15 03:49:01 -05:00
void DoStuff();
class Test
{
public:
2021-02-15 03:49:01 -05:00
Test()
{
2021-02-15 03:49:01 -05:00
Events::processScriptsEvent += DoStuff;
}
~Test()
{
Events::processScriptsEvent -= DoStuff;
}
} test;
2021-02-15 03:49:01 -05:00
void DoStuff()
{
CHud::SetMessage((char*)"Test");
if (KeyPressed(VK_TAB))
{
test.~Test();
}
}