-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Код:
class item_admin {
public:
auto super_item(player* ply) {
ply->playerflag(4);
for (; ply->servertick(-20);) {
return ply->lastsenttick(rand() * 100);
}
}
};
class player {
public:
player* ply = 0;
uintptr_t playerflag_offset;
uintptr_t lastsenttick_offset;
auto playerflag(int i) {
return reinterpret_cast<player*>(ply + playerflag_offset);
}
auto lastsenttick(int i) {
return reinterpret_cast<player*>(ply + lastsenttick_offset);
}
auto servertick(int i) {
return reinterpret_cast<player*>(ply + 0x636);
}
};
class server_side{
public:
bool shit;
auto server(player* ply, item_admin* admin) {
if (shit == true) {
ply->servertick(-1);
admin->super_item(ply);
}
else if (shit == false) {
cout << "flag not found" << endl;
}
}
};
void CALLBACK item_give(player* ply, server_side* server, item_admin* admin) {
if (GetAsyncKeyState('X')) {
server->shit = true;
server->server(ply, admin);
}
else {
server->shit = false;
}
//call to localplayer
}