SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Русский/Russian

Reply
 
Thread Tools Display Modes
Old 20/05/2017, 07:01 PM   #1
Surprice
Big Clucker
 
Join Date: Mar 2015
Posts: 103
Reputation: 0
Default Что за вид чита?

Приветствую.

Не могу понять, что за вид чита такой, кто-то из игроков убивает весь сервер, попросту умирают все на сервере.
Есть ли решение?
Surprice is offline   Reply With Quote
Old 21/05/2017, 01:07 PM   #2
OstGot
Gangsta
 
OstGot's Avatar
 
Join Date: Mar 2013
Location: Gomel, Belarus
Posts: 692
Reputation: 293
Default Re: Что за вид чита?

Скорее всего система урона у тебя через OnPlayerGiveDamage своя. Если так, то читер может ложно вызывать этот паблик
__________________
aka Nexius
Don't want to always check for updates of my scripts?
Include it the last, after all others
Nexius's Update Checker
OstGot is offline   Reply With Quote
Old 21/05/2017, 01:07 PM   #3
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 80
Reputation: 0
Default Re: Что за вид чита?

OnPlayerGiveDamage используется у тебя?
Salik is offline   Reply With Quote
Old 22/05/2017, 10:58 AM   #4
Surprice
Big Clucker
 
Join Date: Mar 2015
Posts: 103
Reputation: 0
Default Re: Что за вид чита?

Quote:
Originally Posted by Salik View Post
OnPlayerGiveDamage используется у тебя?
Используется. Но он пустой
PHP Code:
public OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponid)
{
    return 
true;

Surprice is offline   Reply With Quote
Old 22/05/2017, 11:33 AM   #5
cm666
Huge Clucker
 
Join Date: Jul 2012
Posts: 462
Reputation: 8
Default Re: Что за вид чита?

OnPlayerWeaponShot или есть fs которые юзают подобные функции или инклуды ?
cm666 is offline   Reply With Quote
Old 22/05/2017, 11:35 AM   #6
Surprice
Big Clucker
 
Join Date: Mar 2015
Posts: 103
Reputation: 0
Default Re: Что за вид чита?

Quote:
Originally Posted by cm666 View Post
OnPlayerWeaponShot или есть fs которые юзают подобные функции или инклуды ?
PHP Code:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
hittype != BULLET_HIT_TYPE_NONE)
    {
        if((
fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT)))
        {
            
Kick(playerid);
            return 
0;
        }
    }
    
TimeNumberShotTarget[playerid]++;
    
TimeNumberShot[playerid]++;
    if(
weaponid == 17 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
    {
        foreach(
i)
        {
            if(!
IsPlayerConnected(i) || !IsPlayerInRangeOfPoint(i,10.0fXfYfZ)) continue;
            
ApplyAnimation(i"ped""gas_cwr"6.001110);
        }
    }
    if(
weaponid != 38)
    {
        if((
gettime() - shotTime[playerid]) < 1)
        {
            
shot[playerid]+=1;
        }
        else
        {
            
shot[playerid]=0;
        }
        if(
shot[playerid] > 10)
        {
            if(
PTEMP[playerid][pAdmin] > 2) return true;
            
format(string90"<Warning> %s[%i] Возможно чит на оружие"PTEMP[playerid][pName], playerid);
            
ABroadCast(COLOR_REDD,string,2);
            
CheatKick(playerid,1111);
        }
        
shotTime[playerid] = gettime();
    }
    if(
hittype == 1)
    {
        
SERIU[playerid][SShout][0]++;
        
SERIU[playerid][SShout][1]++;
        
SERIU[playerid][SShout][2]++;
        
SERIU[playerid][SShout][3]++;
    }
    return 
true;



PHP Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    
/*if(issuerid != INVALID_PLAYER_ID)
    {
        new string[128], victim[MAX_PLAYER_NAME], attacker[MAX_PLAYER_NAME];
        new weaponname[24];
        GetPlayerName(playerid, victim, sizeof (victim));
        GetPlayerName(issuerid, attacker, sizeof (attacker));

        GetWeaponName(weaponid, weaponname, sizeof (weaponname));
        format(string, sizeof(string), "%s ïîâðåäèë íà %.0f çäîðîâüÿ %s, îðóæèå: %s", attacker, amount, victim, weaponname);
        SendClientMessageToAll(0xFFFFFFFF, string);
    }*/
    
if(Convoi[playerid] != 9999)
    {
        new 
Float:HP;
        
GetPlayerHealth(playerid,HP);
        
SetPlayerHealthAC(playerid,HP);
    }
    if(
weaponid == 24 || weaponid == 25)
    {
        if(!
IsACop(issuerid)) return true;
        if(
NewTazer[issuerid] != true) return true;
        if(
PlayerCuffed[playerid] == 2) return true;
        if(
PlayerCuffed[playerid] == 1)
        {
            new 
Float:Health;
            
GetPlayerHealth(playerid,Health);
            return 
SetPlayerHealthAC(playerid,Health);
        }
        new 
Float:Health;
        
GetPlayerHealth(playerid,Health);
        
SetPlayerHealthAC(playerid,Health);
        
ApplyAnimation(playerid,"PED","KO_skid_front",6.0,0,1,1,1,0);
        
PlayerCuffed[playerid] = 1;
        
PlayerCuffedTime[playerid] = 10;
        
GameTextForPlayer(playerid,"~r~freeze"50003);
    }
    return 
true;

Surprice is offline   Reply With Quote
Old 25/05/2017, 08:29 AM   #7
Bren
Big Clucker
 
Bren's Avatar
 
Join Date: Jul 2014
Location: Russia
Posts: 74
Reputation: 0
Default Re: Что за вид чита?

weaponid 17 не вызывается в OnPlayerWeaponShot (0.3.7)
PHP Code:
    if(weaponid == 17 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT
    { 
        foreach(
i
        { 
            if(!
IsPlayerConnected(i) || !IsPlayerInRangeOfPoint(i,10.0fXfYfZ)) continue; 
            
ApplyAnimation(i"ped""gas_cwr"6.001110); 
        } 
    } 
Смотри везде где используются SetPlayerHealthAC / SetPlayerHealth. Может команда есть для убийства всех игроков (если паблик) может твой античит убивает всех/ непонятно

Можно так
PHP Code:
if(!IsACop(issuerid)) return true
if(
NewTazer[issuerid] != true) return true
if(
PlayerCuffed[playerid] == 2) return true

if(!
IsACop(issuerid) || NewTazer[issuerid] != true || PlayerCuffed[playerid] == 2) return true
и не только это 
Bren is offline   Reply With Quote
Old 28/05/2017, 04:44 PM   #8
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: Что за вид чита?


public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart){
if issuerid != INVALID_PLAYER_ID *then {
if !IsPlayerStreamedIn(playerid, issuerid) * then {
SendClientMessage(playerid, 0xFFFFFFAA, " читер спалился!");
Kick(playerid);
return false;
}}
return true;
}
DimaShift is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 01:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.