Advertisement
agrippa1994

SAMP API Test

Jul 2nd, 2012
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <iostream>
  3. #include "CAPI.h"
  4.  
  5. int main()
  6. {
  7.     api::CAPI *API = new api::CAPI();
  8.     while(1)
  9.     {
  10.         if(GetAsyncKeyState(VK_NUMPAD1))
  11.         {
  12.             std::cout << API->SendChat("Hallo Welt!") << std::endl;
  13.             std::cout << API->SendChat("/carlock") << std::endl;
  14.             Sleep(100);
  15.         }
  16.         Sleep(50);
  17.     }
  18.     return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement