Weapon restrict оставляет диглы 1-2 игрокам.

Тема в разделе "Общие вопросы", создана пользователем Vladius, 29 янв 2016.

  1. Vladius

    Vladius

    Сообщения:
    18
    Симпатии:
    0
    Здравствуйте, заблокировал диглы на авп сервере, но все равно у 1-2 человек они каждый раунд появляются. Настроил perplayerrestrict.txt - ничего. Стояли версии 3.1.6, 3.1.4. Даже в раунде на ножах проскакивают диглы или даже само авп.

    1)Linux.
    2)
    [SM] Listing 37 plugins:
    01 "Fun Votes" (1.7.3-dev+5292) by AlliedModders LLC
    02 "Admin File Reader" (1.7.3-dev+5292) by AlliedModders LLC
    03 "[Levels Ranks] Core" (v1.2.2) by RoadSide Romeo & R1KO
    04 "Resetscore+" (1.5.1) by AlmazON
    05 "Reserved Slots" (1.7.3-dev+5292) by AlliedModders LLC
    06 "Weapon Restrict" (3.1.4) by Dr!fter
    07 "[Levels Ranks] Module - Knifes" (v1.1.2) by RoadSide Romeo
    08 "Admin Menu" (1.7.3-dev+5292) by AlliedModders LLC
    09 "SourceBans" (1.4.10) by SourceBans Development Team
    10 "Player Commands" (1.7.3-dev+5292) by AlliedModders LLC
    11 "Client Preferences" (1.7.3-dev+5292) by AlliedModders LLC
    12 "[VIP] Tag" (1.0.0) by R1KO
    13 "[VIP] NEON (CSS/CSGO)" (1.0.3) by R1KO & Pheonix (˙·٠●Феникс●٠·˙)
    14 "[VIP] Core" (1.1.3 R) by R1KO (skype: vova.andrienko1)
    15 "[VIP] AURA" (1.0.1) by R1KO & Pheonix (˙·٠●Феникс●٠·˙)
    16 "[VIP] Skins" (1.0.5) by R1KO (skype: vova.andrienko1)
    17 "[VIP] Chat" (1.0.0) by R1KO (skype: vova.andrienko1)
    18 "[VIP] Admin Privileges" (1.0.2) by R1KO (skype: vova.andrienko1)
    19 "[VIP] Admin" (1.0.0) by R1KO
    20 "[VIP] Keys" (1.0.2) by R1KO (skype: vova.andrienko1)
    21 "[VIP] Vips Online" (1.0.1) by R1KO (skype: vova.andrienko1)
    22 "[VIP] Regen HP" (1.0.4) by R1KO
    23 "[VIP] Respawn" (1.0.2) by R1KO
    24 "Basic Info Triggers" (1.7.3-dev+5292) by AlliedModders LLC
    25 "Advertisements" (0.5.7) by Tsunami
    26 "CSGO Admin Weapon Menu" (1.0.0) by Glefs
    27 "Sound Commands" (1.7.3-dev+5292) by AlliedModders LLC
    28 "Basic Votes" (1.7.3-dev+5292) by AlliedModders LLC
    29 "Admin Help" (1.7.3-dev+5292) by AlliedModders LLC
    30 "Basic Commands" (1.7.3-dev+5292) by AlliedModders LLC
    31 "Hook Grab Rope" (1.1.4) by Sheepdude, SumGuy14
    32 "Anti-Flood" (1.7.3-dev+5292) by AlliedModders LLC
    33 "SM CS:GO Weapon Paints" (1.6.4) by Franc1sco franug
    34 "Basic Comm Control" (1.7.3-dev+5292) by AlliedModders LLC
    35 "[Levels Ranks] Module - FakeRank" (v1.1.0) by RoadSide Romeo
    36 "Fun Commands" (1.7.3-dev+5292) by AlliedModders LLC
    37 "Basic Chat" (1.7.3-dev+5292) by AlliedModders LLC
    3)
    Protocol version 13520 [262/262]
    Exe version 1.35.2.0 (csgo)
    Exe build: 17:08:35 Jan 20 2016 (6283) (730)
    4)host.27region.com
    5)
    // This file was auto-generated by SourceMod (v1.7.3-dev+5291)
    // ConVars for plugin "weapon_restrict.smx"

    // Set to 0 to allow awp pickup ONLY if it is under the max allowed. Set to 1 to use sm_allow_restricted_pickup method.
    // -
    // Default: "1"
    sm_allow_awp_pickup "1"
    // Set to 0 to ONLY allow pickup if under the max allowed. Set to 1 to allow restricted weapon pickup
    // -
    // Default: "0"
    sm_allow_restricted_pickup "0"
    sm_allow_restricted_pickup "0"
    // If enabled will count bots in per player restricts
    // -
    // Default: "1"
    sm_perplayer_bots "1"
    // If enabled will restrict awp per player count
    // -
    // Default: "0"
    sm_perplayer_restrict "0"
    // If enabled will count specs in per player restricts
    // -
    // Default: "1"
    sm_perplayer_specs "1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ak47
    // -
    // Default: "-1"
    sm_restrict_ak47_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ak47
    // -
    // Default: "-1"
    sm_restrict_ak47_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:aug
    // -
    // Default: "-1"
    sm_restrict_aug_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:aug
    // -
    // Default: "-1"
    sm_restrict_aug_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:awp
    // -
    // Default: "-1"
    sm_restrict_awp_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:awp
    // -
    // Default: "-1"
    sm_restrict_awp_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:bizon
    // -
    // Default: "-1"
    sm_restrict_bizon_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:bizon
    // -
    // Default: "-1"
    sm_restrict_bizon_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:c4
    // -
    // Default: "-1"
    sm_restrict_c4 "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:deagle
    // -
    // Default: "-1"
    sm_restrict_deagle_ct "0"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:deagle
    // -
    // Default: "-1"
    sm_restrict_deagle_t "0"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:decoy
    // -
    // Default: "-1"
    sm_restrict_decoy_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:decoy
    // -
    // Default: "-1"
    sm_restrict_decoy_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:defuser
    // -
    // Default: "-1"
    sm_restrict_defuser "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:elite
    // -
    // Default: "-1"
    sm_restrict_elite_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:elite
    // -
    // Default: "-1"
    sm_restrict_elite_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:famas
    // -
    // Default: "-1"
    sm_restrict_famas_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:famas
    // -
    // Default: "-1"
    sm_restrict_famas_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:fiveseven
    // -
    // Default: "-1"
    sm_restrict_fiveseven_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:fiveseven
    // -
    // Default: "-1"
    sm_restrict_fiveseven_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:flashbang
    // -
    // Default: "-1"
    sm_restrict_flashbang_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:flashbang
    // -
    // Default: "-1"
    sm_restrict_flashbang_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:g3sg1
    // -
    // Default: "-1"
    sm_restrict_g3sg1_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:g3sg1
    // -
    // Default: "-1"
    sm_restrict_g3sg1_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:galilar
    // -
    // Default: "-1"
    sm_restrict_galilar_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:galilar
    // -
    // Default: "-1"
    sm_restrict_galilar_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:glock
    // -
    // Default: "-1"
    sm_restrict_glock_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:glock
    // -
    // Default: "-1"
    sm_restrict_glock_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hegrenade
    // -
    // Default: "-1"
    sm_restrict_hegrenade_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hegrenade
    // -
    // Default: "-1"
    sm_restrict_hegrenade_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:hkp2000
    // -
    // Default: "-1"
    sm_restrict_hkp2000_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:hkp2000
    // -
    // Default: "-1"
    sm_restrict_hkp2000_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:incgrenade
    // -
    // Default: "-1"
    sm_restrict_incgrenade_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:incgrenade
    // -
    // Default: "-1"
    sm_restrict_incgrenade_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knife
    // -
    // Default: "-1"
    sm_restrict_knife_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knife
    // -
    // Default: "-1"
    sm_restrict_knife_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:knifegg
    // -
    // Default: "-1"
    sm_restrict_knifegg_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:knifegg
    // -
    // Default: "-1"
    sm_restrict_knifegg_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m249
    // -
    // Default: "-1"
    sm_restrict_m249_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m249
    // -
    // Default: "-1"
    sm_restrict_m249_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:m4a1
    // -
    // Default: "-1"
    sm_restrict_m4a1_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:m4a1
    // -
    // Default: "-1"
    sm_restrict_m4a1_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mac10
    // -
    // Default: "-1"
    sm_restrict_mac10_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mac10
    // -
    // Default: "-1"
    sm_restrict_mac10_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mag7
    // -
    // Default: "-1"
    sm_restrict_mag7_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mag7
    // -
    // Default: "-1"
    sm_restrict_mag7_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:molotov
    // -
    // Default: "-1"
    sm_restrict_molotov_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:molotov
    // -
    // Default: "-1"
    sm_restrict_molotov_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp7
    // -
    // Default: "-1"
    sm_restrict_mp7_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp7
    // -
    // Default: "-1"
    sm_restrict_mp7_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:mp9
    // -
    // Default: "-1"
    sm_restrict_mp9_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:mp9
    // -
    // Default: "-1"
    sm_restrict_mp9_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:negev
    // -
    // Default: "-1"
    sm_restrict_negev_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:negev
    // -
    // Default: "-1"
    sm_restrict_negev_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:nova
    // -
    // Default: "-1"
    sm_restrict_nova_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:nova
    // -
    // Default: "-1"
    sm_restrict_nova_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:nvgs
    // -
    // Default: "-1"
    sm_restrict_nvgs_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:nvgs
    // -
    // Default: "-1"
    sm_restrict_nvgs_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p250
    // -
    // Default: "-1"
    sm_restrict_p250_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p250
    // -
    // Default: "-1"
    sm_restrict_p250_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:p90
    // -
    // Default: "-1"
    sm_restrict_p90_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:p90
    // -
    // Default: "-1"
    sm_restrict_p90_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sawedoff
    // -
    // Default: "-1"
    sm_restrict_sawedoff_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sawedoff
    // -
    // Default: "-1"
    sm_restrict_sawedoff_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:scar20
    // -
    // Default: "-1"
    sm_restrict_scar20_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:scar20
    // -
    // Default: "-1"
    sm_restrict_scar20_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:sg556
    // -
    // Default: "-1"
    sm_restrict_sg556_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:sg556
    // -
    // Default: "-1"
    sm_restrict_sg556_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:smokegrenade
    // -
    // Default: "-1"
    sm_restrict_smokegrenade_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:smokegrenade
    // -
    // Default: "-1"
    sm_restrict_smokegrenade_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ssg08
    // -
    // Default: "-1"
    sm_restrict_ssg08_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ssg08
    // -
    // Default: "-1"
    sm_restrict_ssg08_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:taser
    // -
    // Default: "-1"
    sm_restrict_taser_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:taser
    // -
    // Default: "-1"
    sm_restrict_taser_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:tec9
    // -
    // Default: "-1"
    sm_restrict_tec9_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:tec9
    // -
    // Default: "-1"
    sm_restrict_tec9_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:ump45
    // -
    // Default: "-1"
    sm_restrict_ump45_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:ump45
    // -
    // Default: "-1"
    sm_restrict_ump45_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vest
    // -
    // Default: "-1"
    sm_restrict_vest_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vest
    // -
    // Default: "-1"
    sm_restrict_vest_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:vesthelm
    // -
    // Default: "-1"
    sm_restrict_vesthelm_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:vesthelm
    // -
    // Default: "-1"
    sm_restrict_vesthelm_t "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:xm1014
    // -
    // Default: "-1"
    sm_restrict_xm1014_ct "-1"
    // -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Terrorists . Weapon:xm1014
    // -
    // Default: "-1"
    sm_restrict_xm1014_t "-1"
    // Sound to play when a weapon is restricted (leave blank to disable)
    // -
    // Default: "sound/buttons/weapon_cant_buy.wav"
    sm_restricted_sound "sound/buttons/weapon_cant_buy.wav"
    // If 1 disables ff during warmup. If 0 leaves ff enabled
    // -
    // Default: "1"
    sm_warmup_disable_ff "1"
    // Enable warmup.
    // -
    // Default: "1"
    sm_warmup_enable "1"
    // Weather or not give infinite grenades if warmup weapon is grenades
    // -
    // Default: "1"
    sm_warmup_infinite "1"
    // Respawn players during warmup
    // -
    // Default: "1"
    sm_warmup_respawn "1"
    // Time after death before respawning player
    // -
    // Default: "0.5"
    sm_warmup_respawn_time "0.5"
    // How long in seconds warmup lasts
    // -
    // Default: "45"
    sm_warmup_time "45"
    // Enables admin immunity so admins can buy restricted weapons
    // -
    // Default: "0"
    sm_weapon_restrict_immunity "0"
    "PerPlayer"
    {
    "deagle"
    {
    "default" "0"
    "10" "0"
    "18" "0"
    }
    }
     
  2. AlmazON

    AlmazON деревянный © yand3xmail

    Сообщения:
    4.505
    Симпатии:
    1.961
    Может, админы балуются.
     
  3. Vladius

    Vladius

    Сообщения:
    18
    Симпатии:
    0
    Это меню только у меня, и я не балуюсь. Да и оно не дает диглы игрокам, а просто роняет около админа.
     
    Последнее редактирование: 29 янв 2016
  4. Sevmuren

    Sevmuren

    Сообщения:
    28
    Симпатии:
    1
    Проблема так и не решена?
     
  5. SynZilla

    SynZilla

    Сообщения:
    107
    Симпатии:
    6
    А может потому что игроки респавнятся после начала раунда?
     
  6. Sevmuren

    Sevmuren

    Сообщения:
    28
    Симпатии:
    1
    Ситуация такая: Те, кто не был убит перед спец. раундом, спавнятся на ножевых / пистолетных раундах с АВП и диглом (в моем случае, на авп лего).
     
  7. SynZilla

    SynZilla

    Сообщения:
    107
    Симпатии:
    6
    Ситуация такая
    а, так это, у тебя там случаем ещё в начале раунда не спавнится под игроками хренова туча авп?
     
  8. Sevmuren

    Sevmuren

    Сообщения:
    28
    Симпатии:
    1
    Спавнилась, я запретил их через плагин "SM Weapon Cleanup" (1.2) by TechKnow
     
  9. SynZilla

    SynZilla

    Сообщения:
    107
    Симпатии:
    6
    Попробуй вот это, вроде должно помочь
     

    Вложения:

  10. Sevmuren

    Sevmuren

    Сообщения:
    28
    Симпатии:
    1
    Спасибо, попробую. А исходник есть?
     
  11. SynZilla

    SynZilla

    Сообщения:
    107
    Симпатии:
    6
    У меня нет, но можно поискать где-то на оленях, его вроде оттуда мне кидали
     
  12. R1KO

    R1KO Супер-модератор

    Сообщения:
    5.971
    Симпатии:
    2.977
    PHP:
    #pragma semicolon 1
    #include <sourcemod>
    #include <sdkhooks>
    #include <sdktools>

    public OnEntityCreated(entityString:classname[])
    {
        if (
    StrEqual(classname"game_player_equip"false))
        {
            
    SDKHook(entitySDKHook_SpawnHook_OnEntitySpawn);
        }
    }

    public 
    Action:Hook_OnEntitySpawn(entity)
    {
        if (!(
    GetEntProp(entityProp_Data"m_spawnflags"40) & 1))
        {
            
    SetEntProp(entityProp_Data"m_spawnflags"GetEntProp(entityProp_Data"m_spawnflags"40) | 240);
        }
        return 
    Plugin_Continue;
    }
    P.S. Код не мой, а декомпил
     
    Последнее редактирование: 7 июн 2016
    Sevmuren и 666FoX666 нравится это.