Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include "plugin\plugin.h"
- #include "game_sa\CCoronas.h"
- #include "game_sa\common.h"
- #include "game_sa\CMessages.h"
- void DrawCoronas();
- using namespace plugin;
- BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved)
- {
- if(reason == DLL_PROCESS_ATTACH)
- {
- System::RegisterPlugin("Drawing Coronas", "DK", "coronasTest.asi", "1.0", 1, GAME_SA_1_0_US, NULL);
- Core::RegisterFunc(FUNC_GAME_PROCESS, DrawCoronas);
- }
- return TRUE;
- }
- void DrawCoronas()
- {
- CPed *playa = FindPlayerPed(-1);
- if(playa)
- {
- CCoronas::RegisterCorona(5001, playa, 255, 0, 0, 255, CVector(-1.0, -1.0, 0.0), 0.3, 100.0, CORONATYPE_SHINYSTAR, 0, 0, 0, 0, 0, 0, 0.5, 0, 15.0, 0, 0);
- CCoronas::RegisterCorona(5002, playa, 255, 0, 0, 255, CVector(-1.0, 1.0, 0.0), 0.3, 100.0, CORONATYPE_SHINYSTAR, 0, 0, 0, 0, 0, 0, 0.5, 0, 15.0, 0, 0);
- CCoronas::RegisterCorona(5003, playa, 255, 0, 0, 255, CVector(1.0, 1.0, 0.0), 0.3, 100.0, CORONATYPE_SHINYSTAR, 0, 0, 0, 0, 0, 0, 0.5, 0, 15.0, 0, 0);
- CCoronas::RegisterCorona(5004, playa, 255, 0, 0, 255, CVector(1.0, -1.0, 0.0), 0.3, 100.0, CORONATYPE_SHINYSTAR, 0, 0, 0, 0, 0, 0, 0.5, 0, 15.0, 0, 0);
- CMessages::AddMessageJumpQ("Coronas are drawed!", 100, 0, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement