Sign in to follow this  
Followers 0
DEST

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

2 posts in this topic

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

В OnPlayerConnect:

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

В конец мода:
 

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

Guest
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

Loading...
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content