This Can be done a better way and may be a little redundant but it allows you to fire normally while still having triggerbot like effects
PHP Code:
bool triggerstop;
void TriggerBot()
{
DWORD ActivePL = *(DWORD*)ADR_TRIGGER;
if( ActivePL == 0x2){
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
triggerstop=true;
}
else
{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
if (GetAsyncKeyState(VK_LBUTTON)&0x8000)
{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
}else{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
}
}
}
PHP Code:
bool triggerstop;
void TriggerBot()
{
DWORD ActivePL = *(DWORD*)ADR_TRIGGER;
if( ActivePL == 0x2){
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
triggerstop=true;
}
else
{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
if (GetAsyncKeyState(VK_LBUTTON)&0x8000)
{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );
}else{
if (triggerstop){
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
triggerstop=false;
}
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );
}
}
}