Question

Не проходит урон на Micro Uzi, дигл, и тд.
Проходит только на кулаке балончике с краской и всякое подобное.


OnPlayerGiveDamage:

 

public OnVehicleMod(playerid, vehicleid, componentid) return 0;
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
    if(!IsPlayerLogged{playerid}) return false;    
    if(RCVehicle[playerid] != -1return SCM(playerid, COLOR_VALIK, "[Информация]{FFFFFF} За нарушение правил сервера, у вас блокировка создание р/у транспорта на 10 минут"), RCVehicleBlock[playerid] = 600;
    if(GetPlayerWeapon(playerid) != 43 && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_SPRUNK && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_WINE && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_SMOKE_CIGGY && GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DRINK_BEER)
    {
        if(!IsACop(playerid) && !PI[playerid][pTir] && GetPlayerFamilyZone(playerid))
        {
            for(new i; i < MAX_DMZONE; i++)
            {
                if(IsPlayerInRangeOfPoint(playerid, 100.0, AntiDm[i][zX], AntiDm[i][zY], AntiDm[i][zZ]) || GetPlayerVirtualWorld(playerid)!=0 || GetPlayerInterior(playerid)!=0//лолка
                {
                    if(AntiDm[i][zStatus] == 1)
                    {
                        NoEnterPickup[playerid] = 7;
                        ClearAnimations(playerid);
                        ApplyAnimation(playerid, !"MISC""PLYR_SHKHEAD"4.1falsefalsefalsefalse0false); // facepalm                    
                        SPD(playerid, 0, DIALOG_STYLE_MSGBOX, !"{B8F64D}Подсказка", !"\n\n{FFFFFF}В этом месте запрещено {FC7979}драться/стрелять{FFFFFF}.\nЕсли вы продолжите, то вы будете кикнуты!\n\n", !"Принять", !"");
                        return 0;
                    }
                }
            }
        }
    }
    DamageFeedAddHitGiven(damagedid, playerid, amount, weaponid);
    return 1;
}


OnPlayerTakeDamage:

 

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{    
    if(!IsPlayerLogged{playerid}) return false;    
    UpdateDamageForPlayer(playerid,issuerid,weaponid,Float:amount);
    new Float:Health;       
    if(amount > 0)
    {
        GetPlayerHealth(playerid, Health);
        if(amount >= Health) if(weaponid == 50 || weaponid == 51 || weaponid == 53 || weaponid == 54) OnPlayerDeath(playerid, issuerid, weaponid);
        if(UsingShield[playerid])
        {
            if(PI[playerid][pShield] >= 10.0)
            {
                GetPlayerHealth(playerid, Health);
                Health += 10;
                if(Health > 100) Health = 100;
                J_SetPlayerHealth(playerid, Health);
                PI[playerid][pShield] -= 10.0;
            }
            else
            {
                RemovePlayerAttachedObject(playerid, 7);
                UsingShield[playerid] = false;
                PI[playerid][pShield] = 0.0;
                ClearAnimations(playerid);
            }
        }
        new Float:aX, Float:aY, Float:aZ;
                GetPlayerPos(playerid, aX, aY, aZ);
                new Float:distance = GetPlayerDistanceFromPoint(playerid, aX, aY, aZ) / 10.0;
                if(distance < 1.0) distance = 1.0;
                if(ProxDetectorS(20.0, playerid, issuerid, 1))
                {
                        switch(weaponid)
                        {
                                case 3:
                                {
                                        if(IsACop(issuerid) || Isameria(issuerid) || IsAArmy(issuerid) || PI[issuerid][pMember]==TEAM_BANK)
                                        {
                                                if(GetPlayerWeapon(issuerid) == 3)
                                                {
                                                        if(!CuffedTime[playerid])
                                                        {
                                                                if(Controllable{playerid})
                                                                {
                                                                        ClearAnimations(playerid);
                                                                        CheckMiner(playerid);
                                                                        CheckPorter(playerid);
                                                                        CheckBreakCuff(playerid);
                                                                        format(string,sizeof(string),"* %s оглушил %s дубинкой",cPN(issuerid),cPN(playerid));
                                                                        ProxDetector(25,issuerid,string,COLOR_PURPLE);
                                                                        SCM(issuerid, COLOR_WHITE, !"[Информация] {FFFFFF}Нажмите {FF0000}\"N\"{FFFFFF} около человека чтобы сковать его");
                                                                        TazerPlayer[playerid] = issuerid;
                                                                        TazerPlayer[issuerid] = playerid;
                                                                        new Float:X, Float:Y, Float:Z;
                                                                        GetPlayerPos(playerid, X, Y, Z), Z += 1.5;
                                                                        switch(GetPlayerAnimationIndex(issuerid))
                                                                        {
                                                                        case 17: CuffedPlayer(playerid, 15);
                                                                        case 18: CuffedPlayer(playerid, 20);
                                                                        case 19: CuffedPlayer(playerid, 25);
                                                                        default: CuffedPlayer(playerid, 30);
                                                                        }
                                                                }
                                                        }
                                                }
                                                return true;
                                        }
                                }
                                case 23:
                                {
                                        if(IsACop(issuerid) || PI[issuerid][pMember]==TEAM_MERIALS)
                                        {
                                                if(GetPlayerWeapon(issuerid) == 23)
                                                {
                                                        if(!CuffedTime[playerid])
                                                        {
                                                                if(Controllable{playerid})
                                                                {
                                                                        ClearAnimations(playerid);
                                                                        CheckMiner(playerid);
                                                                        CheckPorter(playerid);
                                                                        CheckBreakCuff(playerid);
                                                                        format(string,sizeof(string),"* %s оглушил %s выстрелом с тазера",cPN(issuerid),cPN(playerid));
                                                                        ProxDetector(25,issuerid,string,COLOR_PURPLE);
                                                                        SCM(issuerid, COLOR_WHITE, !"[Информация] {FFFFFF}Нажмите {FF0000}\"N\"{FFFFFF} около человека чтобы сковать его");
                                                                        TazerPlayer[playerid] = issuerid;
                                                                        TazerPlayer[issuerid] = playerid;
                                                                        new Float:X, Float:Y, Float:Z;
                                                                        GetPlayerPos(playerid, X, Y, Z), Z += 1.5;
                                                                        switch(GetPlayerAnimationIndex(issuerid))
                                                                        {
                                                                        case 17: CuffedPlayer(playerid, 15);
                                                                        case 18: CuffedPlayer(playerid, 20);
                                                                        case 19: CuffedPlayer(playerid, 25);
                                                                        default: CuffedPlayer(playerid, 30);
                                                                        }
                                                                }
                                                        }
                                                }
                                                return true;
                                        }
                                }
                        }
                }
        SetPlayerSkills(issuerid);
    }
    return 1;
}

 

 


SERVER.CFG ( Если надо )

echo Executing Server Config...
lanmode 0
rcon_password SAHDjsahdjh132hjsad2SSdsj2
hostname  Arizona RolePlay | Madness | ADM/LID ПРИ РЕГИСТРАЦИИ
gamemode0 arizonarp
filterscripts map attached stas 
plugins crashdetect.so fmt.so pawncmd.so audio.so pawnraknet.so sscanf.so jit.so streamer.so TOTP.so YSF.so mysql_static.so sampvoice.so CLA.so LauncherAddon.so cef.so ColAndreas.so
announce 1
weburl vk.com/arzmadness
maxnpc 15
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 400.0
stream_rate 1000
lagcompmode 1
long_call_time 0
ackslimit 10000
logqueries 0
port 1993
maxplayers 500
query 1

bind 5.39.108.48




 

Share this post


Link to post

1 answer to this question

  • 0

Скиньте функции из мода:

UpdateDamageForPlayer
DamageFeedAddHitGiven

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Человек-редиска
      By Редиска
      Доброго времени суток, уважаемые форумчане!
       
      Представляю вашему вниманию игровой мод Родина РП. Мод полностью рабочий. Заходить можно с официального лаунчера Арз. 
      Коротко о моде:
      1. 8 уровней админки, 2 уровня ФД.
      2. Ежедневные награды
      3. Мод с бонусом, но его можно легко убрать
      4. Мод легко настраиваемый
      5. Бери, заливай на хостинг и запускай, никаких проблем и ошибок
      6. Система тюнинга
      7. Нет казино!
      8. Баттлпасс
      9. Аукционы
      10. Cef /donate
      11. Cef /gps
       
      Всё это и многое другое ждёт вас в данном моде!
      Цена оправдана, мод ни разу нигде не сливался. Другие лица продают его от 15к+.
    • Nik_Rofid
      By Nik_Rofid
      Здравствуйте, можно ли на сервере копии радмира сделать так, что бы на машину можно было установить конкретный номер например ставится на машу рандом номер а будет х777хх77