#include #include "main.h" SAMPFUNCS * SF = new SAMPFUNCS ( ) ; void __stdcall mainloop ( ) { static bool initialized = false ; if ( ! initialized ) { if ( GAME && GAME -> GetSystemState ( ) == eSystemState :: GS_PLAYING_GAME && SF -> getSAMP ( ) -> IsInitialized ( ) ) { initialized = true ; SF -> getSAMP ( ) -> getChat ( ) -> AddChatMessage ( D3DCOLOR_XRGB ( 0 , 0xAA , 0 ) , "SAMPFUNCS Plugin loaded." ) ; } } } BOOL APIENTRY DllMain ( HMODULE hModule , DWORD dwReasonForCall , LPVOID lpReserved ) { if ( dwReasonForCall == DLL_PROCESS_ATTACH ) SF -> initPlugin ( mainloop , hModule ) ; return TRUE ; }