Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD WINAPI runThread(LPVOID args)
- {
- while(GetAsyncKeyState(32)!=0)
- {
- if (enginecl->IsConnected())
- {
- C_BaseEntity* pEnt = cl_list->GetClientEntity(enginecl->GetLocalPlayer())->GetBaseEntity();
- if ( pEnt )
- {
- if((*reinterpret_cast< int* >( reinterpret_cast< int >( pEnt ) + 0x2E4 ) & FL_ONGROUND)!=0)
- {
- engine->ServerCommand("+jump\n");
- Sleep(5);
- engine->ServerCommand("-jump\n");
- }
- }
- }
- else
- {
- Msg("You are not in a game.\n");
- }
- }
- return 0;
- }
- void dome(const CCommand& args)
- {
- DWORD threadId;
- CreateThread(NULL, 0, runThread, NULL, 0, &threadId);
- }
- char MyCmd[] = "fuckme";
- ConCommand Doom( MyCmd, dome, "Start this shit", 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement