Sign in to follow this  
Followers 0

Проверка подлинности версии (защита от собейта)

2 posts in this topic

Как известно собейт  для крмп использует нестандартное подключение, в связи с чем его очень легко пофиксить простой проверкой на версию подключению.

В OnPlayerConnect:

if (!CheckClientVersion(playerid))
SendClientMessage(playerid, -1, "Вы прошли проверку на наличие вредоносного ПО");
SendClientMessage(playerid, -1, "У вас обнаружено вредоносное ПО");

В конец мода:

stock CheckClientVersion(playerid)
    new CLIENT_VERSION[10];
    GetPlayerVersion(playerid, CLIENT_VERSION, sizeof(CLIENT_VERSION));
    return strcmp("0.3e", CLIENT_VERSION);


Share this post

Link to post
Share on other sites

Your content will need to be approved by a moderator

You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   You have pasted content with formatting.   Remove formatting

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content