Другое С/С++ Вопрос - Ответ

san0

Известный
Друг
411
267
C++:
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#include <windows.h>
#include <string>
#include <assert.h>
#include <process.h>
#include "SAMPFUNCS_API.h"
#include "game_api\game_api.h"
#include "AntTweakbar.h"
#pragma comment (lib, "AntTweakBar.lib")

SAMPFUNCS *SF = new SAMPFUNCS();



void TW_CALL uclear(void *clientData)
{
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
    SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");
}

void TW_CALL uhelp(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *bar = nullptr;
    bar = TwNewBar("SF Ultimate HELP");
    TwAddButton(bar, "Info1.1", NULL, NULL, " label='/uinfo <id> - player info' ");
    TwAddButton(bar, "Info1.2", NULL, NULL, " label='/utp <id> - player teleport' ");
    TwAddButton(bar, "Info1.3", NULL, NULL, " label='SF Ultimate by KYRLYK' ");
}


void __stdcall utp(std::string param)
{
    if (param.empty()) return;
    int i = std::stoi(param);
    char buf[128];
    actor_info *acter = SF->getGame()->actorInfoGet(-1, 0x01);
    acter->base.matrix[4 * 3] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[0];
    acter->base.matrix[4 * 3 + 1] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[1];
    acter->base.matrix[4 * 3 + 2] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[2];
    sprintf(buf, "[uTP] Вы телепортированы к игроку. ID: %d", i);
    SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
}

void TW_CALL fullhp(void *clientData)
{
    PEDSELF->SetHealth(100);
}

void TW_CALL armor(void *clientData)
{
    PEDSELF->SetArmor(100);
}


void TW_CALL utime(void *clientData)
{
        char buf[128];
         SYSTEMTIME lt, st;
        GetLocalTime(&lt);
        GetSystemTime(&st);
        sprintf(buf, "[uTime] Время: %02d:%02d:%02d", lt.wHour, lt.wMinute, lt.wSecond);
        SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
    }


void TW_CALL dialog_hide(void *clientData)
{
    int &iDialogStatus = SF->getSAMP()->getDialog()->iIsActive;

    iDialogStatus ^= true;

    if (!iDialogStatus)
        SF->getSAMP()->getMisc()->ToggleCursor(false);
}

void CALLBACK cmd_show_info_player(std::string param)
{
    if (param.empty()) return;
    int    i = std::stoi(param);

    char buf[128];

    stRemotePlayer *pPlayer = SF->getSAMP()->getPlayers()->pRemotePlayer[i];

    if (!pPlayer) return;

    sprintf(buf, "Ник - %s, Пинг - %d, LVL - %d, AFK - %d",
        pPlayer->szPlayerName,
        pPlayer->iPing,
        pPlayer->iScore,
        pPlayer->pPlayerData->iAFKState == 2);

    SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
};

static void TW_CALL nofallon(const void *value, void *clientData)
{
    SF->getCLEO()->callOpcode("08C6: set_actor $PLAYER_ACTOR stay_on_bike 1");
}
static void TW_CALL nofalloff(void *value, void *clientData)
{
    SF->getCLEO()->callOpcode("08C6: set_actor $PLAYER_ACTOR stay_on_bike 0");
}



void TW_CALL player(void *clientData)
{
    TwBar *player = nullptr;
    player = TwNewBar("SF Ultimate PLAYER");
    TwAddButton(player, "100 HP", fullhp, NULL, "");
    TwAddButton(player, "100 AP", armor, NULL, "");
    TwAddVarCB(player, "BikeNoFall", TW_TYPE_BOOLCPP, nofallon, nofalloff, "", NULL);
}

void TW_CALL veh(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *veh = nullptr;
    veh = TwNewBar("SF Ultimate VEHICLES");
}

void TW_CALL respawn(void *clientData)
{
    SF->getSAMP()->getPlayers()->pLocalPlayer->Spawn();
}

void TW_CALL other(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *other = nullptr;
    other = TwNewBar("SF Ultimate OTHER");
    TwAddButton(other, "Time", utime, NULL, "");
    TwAddButton(other, "DialogHider", dialog_hide, NULL, "");
    TwAddButton(other, "ClearChat", uclear, NULL, "");
    TwAddButton(other, "Respawn", respawn, NULL, "");
}

void TW_CALL nopsp(void *clientData)
{
    SF->getCLEO()->callOpcode("0B2E: 1@ = read_samp_memory offset 0x15970 size 2\"");
    SF->getCLEO()->callOpcode("0B2D: write_samp_memory offset 0x15970 value 1@ size 2\"");
}

void TW_CALL nops(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *other = nullptr;
    other = TwNewBar("SF Ultimate NOPS");
    TwAddButton(other, "NotWork", nopsp, NULL, "");
}

void CALLBACK mainloop()
{
    static bool init = false;
    if (!init)
    {
        if (GAME == nullptr)
            return;
        if (GAME->GetSystemState() != eSystemState::GS_PLAYING_GAME)
            return;
        if (!SF->getSAMP()->IsInitialized())
            return;
        SF->getSAMP()->registerChatCommand("uinfo", cmd_show_info_player);
        SF->getSAMP()->registerChatCommand("utp", utp);
        SF->getSAMP()->getChat()->AddChatMessage( D3DCOLOR_XRGB( 0, 0x3300FF, 0 ), "[KYRLYK] SF Ultimate BETA запущен!" );
        SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "[KYRLYK]");
        SF->LogConsole("SF Ultimate by KYRLYK Loaded!");
        if (SF->getGame()->isKeyPressed('P'))
        {
            TwBar *twBar_Main = nullptr;
            twBar_Main = TwNewBar("SF Ultimate");
            TwAddButton(twBar_Main, "Player", player, NULL, "");
            TwAddButton(twBar_Main, "Vehicles", veh, NULL, "");
            TwAddButton(twBar_Main, "Nops", nops, NULL, "");
            TwAddButton(twBar_Main, "Other", other, NULL, "");
            TwAddButton(twBar_Main, "Help", uhelp, NULL, "");
        }
        init = true;
    }
}


BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReasonForCall, LPVOID lpReserved)
{
    switch (dwReasonForCall)
    {
        case DLL_PROCESS_ATTACH:
            SF->initPlugin(mainloop, hModule);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    }
    return TRUE;
}
Очистка чата от души
 
  • Нравится
Реакции: Slono_Boyko и Sire Like

Dark_Knight

Me, me and me.
Друг
4,062
2,077
C++:
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#include <windows.h>
#include <string>
#include <assert.h>
#include <process.h>
#include "SAMPFUNCS_API.h"
#include "game_api\game_api.h"
#include "AntTweakbar.h"
#pragma comment (lib, "AntTweakBar.lib")

SAMPFUNCS *SF = new SAMPFUNCS();
TwBar *twBar_Main = nullptr;
 TwBar *bar = nullptr;
bool Active = false;
int x, y;

void TW_CALL uclear(void *clientData)
{
    for(int i = 0; i < 256; i++)
        SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0x3300FF, 0), "");    
}

void TW_CALL uhelp(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
   
   
}

void CALLBACK utp(std::string param)
{
    if (param.empty()) return;
    int i = std::stoi(param);
    char buf[128];
    actor_info *acter = SF->getGame()->actorInfoGet(-1, 0x01);
    acter->base.matrix[4 * 3] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[0];
    acter->base.matrix[4 * 3 + 1] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[1];
    acter->base.matrix[4 * 3 + 2] = SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[2];
    sprintf(buf, "[uTP] Вы телепортированы к игроку. ID: %d", i);
    SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
}

void TW_CALL fullhp(void *clientData)
{
    PEDSELF->SetHealth(100);
}

void TW_CALL armor(void *clientData)
{
    PEDSELF->SetArmor(100);
}

void TW_CALL utime(void *clientData)
{
        char buf[128];
         SYSTEMTIME lt, st;
        GetLocalTime(&lt);
        GetSystemTime(&st);
        sprintf(buf, "[uTime] Время: %02d:%02d:%02d", lt.wHour, lt.wMinute, lt.wSecond);
        SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
    }

void TW_CALL dialog_hide(void *clientData)
{
    int &iDialogStatus = SF->getSAMP()->getDialog()->iIsActive;

    iDialogStatus ^= true;

    if (!iDialogStatus)
        SF->getSAMP()->getMisc()->ToggleCursor(false);
}

void CALLBACK cmd_show_info_player(std::string param)
{
    if (param.empty()) return;
    int    i = std::stoi(param);

    char buf[128];

    stRemotePlayer *pPlayer = SF->getSAMP()->getPlayers()->pRemotePlayer[i];

    if (!pPlayer) return;

    sprintf(buf, "Ник - %s, Пинг - %d, LVL - %d, AFK - %d",
        pPlayer->szPlayerName,
        pPlayer->iPing,
        pPlayer->iScore,
        pPlayer->pPlayerData->iAFKState == 2);

    SF->getSAMP()->getChat()->AddChatMessage(-1, buf);
};

static void TW_CALL nofallon(const void *value, void *clientData)
{
    SF->getCLEO()->callOpcode("08C6: set_actor $PLAYER_ACTOR stay_on_bike 1");
}
static void TW_CALL nofalloff(void *value, void *clientData)
{
    SF->getCLEO()->callOpcode("08C6: set_actor $PLAYER_ACTOR stay_on_bike 0");
}


void TW_CALL player(void *clientData)
{
    TwBar *player = nullptr;
    player = TwNewBar("SF Ultimate PLAYER");
    TwAddButton(player, "100 HP", fullhp, NULL, "");
    TwAddButton(player, "100 AP", armor, NULL, "");
    TwAddVarCB(player, "BikeNoFall", TW_TYPE_BOOLCPP, nofallon, nofalloff, "", NULL);
}

void TW_CALL veh(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *veh = nullptr;
    veh = TwNewBar("SF Ultimate VEHICLES");
}

void TW_CALL respawn(void *clientData)
{
    SF->getSAMP()->getPlayers()->pLocalPlayer->Spawn();
}

void TW_CALL other(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *other = nullptr;
    other = TwNewBar("SF Ultimate OTHER");
    TwAddButton(other, "Time", utime, NULL, "");
    TwAddButton(other, "DialogHider", dialog_hide, NULL, "");
    TwAddButton(other, "ClearChat", uclear, NULL, "");
    TwAddButton(other, "Respawn", respawn, NULL, "");
}

void TW_CALL nopsp(void *clientData)
{
    SF->getCLEO()->callOpcode("0B2E: 1@ = read_samp_memory offset 0x15970 size 2\"");
    SF->getCLEO()->callOpcode("0B2D: write_samp_memory offset 0x15970 value 1@ size 2\"");
}

void TW_CALL nops(void *clientData)
{
    if (!SF->getSAMP()->IsInitialized())
        return;
    TwBar *other = nullptr;
    other = TwNewBar("SF Ultimate NOPS");
    TwAddButton(other, "NotWork", nopsp, NULL, "");
}

bool CALLBACK HUD(CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
{
    if (SUCCEEDED(SF->getRender()->BeginRender()))
    {
        if(Active)
        {
            SF->getGame()->getScreenResolution(&x, &y);
            TwWindowSize(x, y);
            TwDraw();
            SF->getRender()->EndRender()
        }
    }
   
    return true;
}


void CALLBACK mainloop()
{
    static bool init = false;
    if (!init)
    {
        if (GAME == nullptr)
            return;
        if (GAME->GetSystemState() != eSystemState::GS_PLAYING_GAME)
            return;
        if (!SF->getSAMP()->IsInitialized())
            return;
        SF->getSAMP()->registerChatCommand("uinfo", cmd_show_info_player);
        SF->getSAMP()->registerChatCommand("utp", utp);
        SF->getSAMP()->getChat()->AddChatMessage( 0xFF3300FF, "[KYRLYK] SF Ultimate BETA запущен!" );
        SF->LogConsole("SF Ultimate by KYRLYK Loaded!");
        twBar_Main = TwNewBar("SF Ultimate");
        TwDefine("'SF Ultimate' color='0 224 160' size='250 400' text=white position='5 400' position='200 200'");
        TwAddButton(twBar_Main, "Player", player, NULL, "");
        TwAddButton(twBar_Main, "Vehicles", veh, NULL, "");
        TwAddButton(twBar_Main, "Nops", nops, NULL, "");
        TwAddButton(twBar_Main, "Other", other, NULL, "");
        TwAddButton(twBar_Main, "Help", uhelp, NULL, ""); 
        bar = TwNewBar("SF Ultimate HELP");
        TwAddButton(bar, "Info 1.1", NULL, NULL, " label='/uinfo <id> - player info' ");
        TwAddButton(bar, "Info 1.2", NULL, NULL, " label='/utp <id> - player teleport' ");
        TwAddButton(bar, "Info 1.3", NULL, NULL, " label='SF Ultimate by KYRLYK' ");       
        init = true;
    }
    if (SF->getGame()->isKeyPressed('P'))
    {
        Active ^= true;          
    }
}


BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReasonForCall, LPVOID lpReserved)
{
    switch (dwReasonForCall)
    {
        case DLL_PROCESS_ATTACH:
            SF->initPlugin(mainloop, hModule);
            break;
        case DLL_THREAD_ATTACH:
        case DLL_THREAD_DETACH:
        case DLL_PROCESS_DETACH:
            break;
    }
    return TRUE;
}
 

Wall

Потрачен
13
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
как перевести готовый раксамп с 03z на 037?
 

Wall

Потрачен
13
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Изменить ключ, изменить парочку структур, изменить иды рпц и пакетов.
а поподробнее можно где именно менять?
15d3c4e94e53.jpg
 
Последнее редактирование:

Wall

Потрачен
13
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Скачай сурс раксампа для 0.3.7 только он для r1. У тебя даже визуалки нету.
есть для 037 там сурсы одни и теже вс нету пока так делаю потом поставлю когда компилить буду
 

Dimoz

Новичок
98
16
Кто-нибудь знает, есть ли у функции realloc какие-либо противопоказания?
Дело в том, что при её использовании, игра вылетает во время выхода на паузу, сворачивания и проч.
Код:
int actions_count = 0;

enum eActionType
{
    ACTION_TYPE_NONE,
    ACTION_TYPE_ONLYCAR,
    ACTION_TYPE_ONLYPED
};

struct stActionData
{
    int key_id = 0;
    char *msg = NULL;
    int wait_time = 0;
    eActionType action_type = eActionType::ACTION_TYPE_NONE;
};

struct stActionData *action_data;
...

actions_count++;
action_data = (struct stActionData *)realloc(action_data, sizeof(struct stActionData) * actions_count);

При "отцеплении" плагина от игры, выполняю следующее:
Код:
void FreeBindData()
{
    for (int i = 0; i < actions_count; i++)
    {
        if (action_data[i].msg != NULL)
            free((void*)action_data[i].msg);
    }
    free(action_data);
}

Причем в собейте используется тот же принцип, однако там все хорошо, а у меня - какая-то залупа.
Заранее спасибо за помощь.