CS:GO Lobby Joiner (C++)


CSGO Hile & Hack    CSGO hileleri,CSGO Hilesi,CSGO hile,CSGO hack,CSGO oyun hilesi,CSGO hacks,CSGO Hile 2016,CSGO hileleri 2016

Yazar: ErdemMH    1 Yorum    327 Görüntüleme
  • Derecelendirme: 0/5 - 0 oy

Paylaşım Tarihi: 24.01.2016, 19:15:56 #1
ErdemMH .
Süper Üye
Status: Çevrimdışı Yorumları:649 Konuları:123 Kayıt Tarihi:10.12.2015 Rep Puanı: 224

Lobby Joiner (CS:GO)

Kod:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#include <Windows.h> //WinAPI functions and structures

#include <iostream> // For standard c++ library (cout, etc)
#include <string>   // For standard c++ string manipulation
#include <sstream>  // For standard c++ string stream (string manipulation)
#include <fstream>  // For standard c++ file I/O (writing, reading, etc)

#include <WinInet.h> // For internet usage, for DeleteUrlCacheEntryW function.
#include <urlmon.h>  // For downloading a file from url.

#pragma comment(lib, "wininet.lib") // For linking against wininet.dll so we can use it's functions
#pragma comment(lib, "urlmon.lib")  // For linking against urlmon.dll so we can download files from url

using std::cout; // This is better way than doing: using namespace std;
using std::cin;
using std::endl;

int main()
{
	std::string SteamProfileLink;
	std::string FileName = "steamprofile.dat";
	std::string SteamBuffer, LobbyId;
	std::ifstream FileReader;

	cout << "Please Enter a Link to Target Steam Profile:";
	cin >> SteamProfileLink; // save link to a string
	cout << "Attempting to join a lobby..." << endl;
	
	DeleteUrlCacheEntryA(SteamProfileLink.c_str()); // Delete cache, so we wont download old data
	HRESULT DownloadResult = URLDownloadToFileA(0, SteamProfileLink.c_str(), FileName.c_str(), 0, 0); // Download steam profile to file
	if (SUCCEEDED(DownloadResult)) //Check if download was succesful
	{
		FileReader.open(FileName);
		if (FileReader.is_open())
		{
			std::ostringstream FileBuffer; // Create stringstream
			FileBuffer << FileReader.rdbuf(); // read file to that string stream
			SteamBuffer = FileBuffer.str(); // store buffer to string
			if (SteamBuffer.find("steam://joinlobby/730/") != std::string::npos) // Check if user is in lobby
			{
				std::size_t LobbyIdStart, LobbyIdEnd;
				LobbyIdStart = SteamBuffer.find("steam://joinlobby/730/");
				if (LobbyIdStart != std::string::npos) 
				{
					LobbyIdEnd = SteamBuffer.find("\"", LobbyIdStart);
					if (LobbyIdEnd != std::string::npos) {
						LobbyId = SteamBuffer.substr(LobbyIdStart, LobbyIdEnd - LobbyIdStart);
						cout << "Lobby ID is: " << LobbyId << endl;
						cout << "Joining lobby..." << endl;

						ShellExecuteA(0, "open", LobbyId.c_str(), 0, 0, SW_SHOWNORMAL); // Join to the lobby
					} 
				}
			}
			else {
				cout << "Error: User not in lobby!" << endl;
			}
		}
		else {
			cout << "Error: Failed to open downloaded file!" << endl;
		}
	}
	else {
		cout << "Error: Failed to download profile information!" << endl;
	}
	FileReader.close();
	std::remove(FileName.c_str());
	return 0;



Kodla Uğraşmak İstemiyor Diyen Varsa
Sitemize kayıtlı değilseniz linkleri görebilmeniz İçin Kayıt Olun veya Giriş Yapın

Kullanıcı İmzası
Resim http://49.media.tumblr.com/a410c087590891fc6b1a319ada18acba/tumblr_mwh8fc9NX81s0twoeo1_r3_400.gif

Resim http://i.hizliresim.com/L15Y7b.jpg

Paylaşım Tarihi: 24.01.2016, 19:31:00 #2
Azrail Because.
Süper Üye
Status: Çevrimdışı Yorumları:534 Konuları:55 Kayıt Tarihi:24.01.2016 Rep Puanı: 75

Eyvallah Kardeşim










Konuyu Okuyanlar:
1 Ziyaretçi