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

    • Guest володя
      By Guest володя
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(67) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(114 -- 121) : error 001: expected token: "-string end-", but found "-identifier-"
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 217: loose indentation
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121) : warning 215: expression has no effect
      C:\Users\vilin\Desktop\Hot RP\gamemodes\hot.pwn(121 -- 124) : warning 215: expression has no effect
      Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

      1 Error.
      Вот код: