Mike Ferdinant
Новичок
- 8
- 0
Ребята подскажите как сделать что бы во время телепорта по чек пойнтам игрок стоял на месте , помню пользовался как-то давно таким ботом в сампе, и вот мне тоже понадобилась такая функция
Информация - [SF] Полезные функции(https://blast.hk/threads/10970/#post-96186)Ребята подскажите как сделать что бы во время телепорта по чек пойнтам игрок стоял на месте , помню пользовался как-то давно таким ботом в сампе, и вот мне тоже понадобилась такая функция
Можешь записывать оригинальный ник при заходе или перед использованием SetLocalPlayerName().Как можно узнать ник игрока, не изменённый через SetLocalPlayerName(). То есть, настоящий ник.
А если плагин будет запущен уже после захода?Можешь записывать оригинальный ник при заходе или перед использованием SetLocalPlayerName().
Через структуру педаКак установить иммунитеты игроку?
Имеется ли возможность узнать точное московское время? (Не компьютерное...)
Если только через запросы, то посоветуйте статью про curl для SF
InternetOpen
InternetConnect
HttpOpenRequest
HttpSendRequest
InternetReadFile
InternetCloseHandle
// ImGui - null/dummy example application (compile and link imgui with no inputs, no outputs)
#include "imgui.h"
#include <stdio.h>
int main(int, char**)
{
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
// Build atlas
unsigned char* tex_pixels = NULL;
int tex_w, tex_h;
io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h);
for (int n = 0; n < 5000; n++)
{
printf("NewFrame() %d\n", n);
io.DisplaySize = ImVec2(1920, 1080);
io.DeltaTime = 1.0f / 60.0f;
ImGui::NewFrame();
static float f = 0.0f;
ImGui::Text("Hello, world!");
ImGui::SliderFloat("float", &f, 0.0f, 1.0f);
ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
ImGui::ShowDemoWindow(NULL);
ImGui::Render();
}
printf("DestroyContext()\n");
ImGui::DestroyContext();
return 0;
}
Эксклюзив - Исходник - Софт - [REL]ImGUI API for SAMPFUNCS(https://blast.hk/threads/15155/)Каким образом можно подключить ImGui в проект SF?
Пытался по этому примеру, не помогает.
C++:// ImGui - null/dummy example application (compile and link imgui with no inputs, no outputs) #include "imgui.h" #include <stdio.h> int main(int, char**) { ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); // Build atlas unsigned char* tex_pixels = NULL; int tex_w, tex_h; io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_w, &tex_h); for (int n = 0; n < 5000; n++) { printf("NewFrame() %d\n", n); io.DisplaySize = ImVec2(1920, 1080); io.DeltaTime = 1.0f / 60.0f; ImGui::NewFrame(); static float f = 0.0f; ImGui::Text("Hello, world!"); ImGui::SliderFloat("float", &f, 0.0f, 1.0f); ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate); ImGui::ShowDemoWindow(NULL); ImGui::Render(); } printf("DestroyContext()\n"); ImGui::DestroyContext(); return 0; }
не, не, не. Дополнительных файлов мне не надо.
от этого же автора ищи без дополнительных файлов. Кнопка "поиск" в помощь.не, не, не. Дополнительных файлов мне не надо.
string to_utf8(const char *str)
{
string res;
int result_u, result_c;
result_u = MultiByteToWideChar(1251, 0, str, -1, 0, 0);
if (!result_u)
return 0;
wchar_t *ures = new wchar_t[result_u];
if (!MultiByteToWideChar(1251, 0, str, -1, ures, result_u))
{
delete[] ures;
return 0;
}
result_c = WideCharToMultiByte(CP_UTF8, 0, ures, -1, 0, 0, 0, 0);
if (!result_c) {
delete[] ures;
return 0;
}
char *cres = new char[result_c];
if (!WideCharToMultiByte(CP_UTF8, 0, ures, -1, cres, result_c, 0, 0))
{
delete[] cres;
return 0;
}
delete[] ures;
res.append(cres);
delete[] cres;
return res;
}
string to_cp1251(const char *str)
{
string res;
int result_u, result_c;
result_u = MultiByteToWideChar(CP_UTF8, 0, str, -1, 0, 0);
if (!result_u)
return string();
wchar_t *ures = new wchar_t[result_u];
if (!MultiByteToWideChar(CP_UTF8, 0, str, -1, ures, result_u))
{
delete[] ures;
return 0;
}
result_c = WideCharToMultiByte(1251, 0, ures, -1, 0, 0, 0, 0);
if (!result_c) {
delete[] ures;
return 0;
}
char *cres = new char[result_c];
if (!WideCharToMultiByte(1251, 0, ures, -1, cres, result_c, 0, 0))
{
delete[] cres;
return 0;
}
delete[] ures;
res.append(cres);
delete[] cres;
return res;
}
ImGui::Text(to_utf8("Какие проблемы?").c_str())Не могу вот настроить кодировку в проекте с ImGUI, использую эти функции, но ничего не помогает...
C++:string to_utf8(const char *str) { string res; int result_u, result_c; result_u = MultiByteToWideChar(1251, 0, str, -1, 0, 0); if (!result_u) return 0; wchar_t *ures = new wchar_t[result_u]; if (!MultiByteToWideChar(1251, 0, str, -1, ures, result_u)) { delete[] ures; return 0; } result_c = WideCharToMultiByte(CP_UTF8, 0, ures, -1, 0, 0, 0, 0); if (!result_c) { delete[] ures; return 0; } char *cres = new char[result_c]; if (!WideCharToMultiByte(CP_UTF8, 0, ures, -1, cres, result_c, 0, 0)) { delete[] cres; return 0; } delete[] ures; res.append(cres); delete[] cres; return res; } string to_cp1251(const char *str) { string res; int result_u, result_c; result_u = MultiByteToWideChar(CP_UTF8, 0, str, -1, 0, 0); if (!result_u) return string(); wchar_t *ures = new wchar_t[result_u]; if (!MultiByteToWideChar(CP_UTF8, 0, str, -1, ures, result_u)) { delete[] ures; return 0; } result_c = WideCharToMultiByte(1251, 0, ures, -1, 0, 0, 0, 0); if (!result_c) { delete[] ures; return 0; } char *cres = new char[result_c]; if (!WideCharToMultiByte(1251, 0, ures, -1, cres, result_c, 0, 0)) { delete[] cres; return 0; } delete[] ures; res.append(cres); delete[] cres; return res; }