Advertisement
Guest User

Untitled

a guest
Aug 31st, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. DWORD WINAPI runThread(LPVOID args)
  2. {
  3.     while(GetAsyncKeyState(32)!=0)
  4.     {
  5.         if (enginecl->IsConnected())
  6.         {
  7.             C_BaseEntity* pEnt = cl_list->GetClientEntity(enginecl->GetLocalPlayer())->GetBaseEntity();
  8.             if ( pEnt )
  9.             {
  10.                 if((*reinterpret_cast< int* >( reinterpret_cast< int >( pEnt ) + 0x2E4 ) & FL_ONGROUND)!=0)
  11.                 {
  12.         engine->ServerCommand("+jump\n");  
  13.         Sleep(5);
  14.         engine->ServerCommand("-jump\n");
  15.                 }
  16.             }
  17.         }
  18.         else
  19.         {
  20.             Msg("You are not in a game.\n");
  21.         }
  22.     }
  23.     return 0;
  24. }
  25.  
  26. void dome(const CCommand& args)
  27. {
  28.     DWORD threadId;
  29.     CreateThread(NULL, 0, runThread, NULL, 0, &threadId);
  30. }
  31.  
  32. char MyCmd[] = "fuckme";
  33. ConCommand Doom( MyCmd, dome, "Start this shit", 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement