AWP keelamine

Vaata eelmist teemat Vaata järgmist teemat Go down

viljr
viljr
Juunior
Liitus : 01/01/2015
Postitusi : 86

Postitamineviljr on 08.01.15 22:07

Kas selline plugin olemas, et teatud mappides ei saa awp/d ?
Tonight
Tonight

AWP keelamine Vetera11
Liitus : 19/02/2012
Postitusi : 17120

PostitamineTonight on 08.01.15 23:38

Variant 1:
Kood:
    #include <amxmodx>

    new const g_maps[][] =
    {
        "de_inferno",
        "de_dust2"
    }

    new bool: AllowOnThisMap

    public plugin_init(){
        register_plugin("Drop Awp","0.3","Faval")
     
        new map[32]
        get_mapname(map, charsmax(map))
        for(new i=0;i< sizeof g_maps;i++)
        {
            if(equal(map, g_maps[i]))
            {
                AllowOnThisMap = true
                break
            }
        }
        if(!AllowOnThisMap)
        {
            register_event("WeapPickup","Kontroll","b","1=18")
        }
        else
        {
            pause("a")
        }
    }

    public Kontroll(id)
    {
        new llama = read_data(0)
        client_print(llama,print_center,"AWP pole lubatud.")
        engclient_cmd(llama, "drop","weapon_awp")
        client_cmd(llama,"drop weapon_awp")
    }

Variant 2:
Kontrolli, et restmenu.amxx oleks plugins.inis aktiveeritud.
Tee mapi jaoks config fail. Näide:
amxmodx/configs/maps/de_dust2_long.cfg
Ava see ning sisesta:
amx_restrict on awp

server.cfg'usse lisa:
mapchangecfgfile server.cfg
viljr
viljr
Juunior
Liitus : 01/01/2015
Postitusi : 86

Postitamineviljr on 09.01.15 0:03

Mida pean panema ,et scout ka
Tonight
Tonight

AWP keelamine Vetera11
Liitus : 19/02/2012
Postitusi : 17120

PostitamineTonight on 09.01.15 0:04

Kumba meetodit kasutad?
viljr
viljr
Juunior
Liitus : 01/01/2015
Postitusi : 86

Postitamineviljr on 09.01.15 0:06

teist
Tonight
Tonight

AWP keelamine Vetera11
Liitus : 19/02/2012
Postitusi : 17120

PostitamineTonight on 09.01.15 0:08

amx_restrict on scout

Kood:
amx_restrict on usp ; H&K USP .45 Tactical
amx_restrict on glock ; Glock18 Select Fire
amx_restrict on deagle ; Desert Eagle .50AE
amx_restrict on p228 ; SIG P228
amx_restrict on elites ; Dual Beretta 96G Elite
amx_restrict on fn57 ; FN Five-Seven
amx_restrict on m3 ; Benelli M3 Super90
amx_restrict on xm1014 ; Benelli XM1014
amx_restrict on mp5 ; H&K MP5-Navy
amx_restrict on tmp ; Steyr Tactical Machine Pistol
amx_restrict on p90 ; FN P90
amx_restrict on mac10 ; Ingram MAC-10
amx_restrict on ump45 ; H&K UMP45
amx_restrict on ak47 ; AK-47
amx_restrict on galil ; Gali
amx_restrict on famas ; Famas
amx_restrict on sg552 ; Sig SG-552 Commando
amx_restrict on m4a1 ; Colt M4A1 Carbine
amx_restrict on aug ; Steyr Aug
amx_restrict on scout ; Steyr Scout
amx_restrict on awp ; AI Arctic Warfare/Magnum
amx_restrict on g3sg1 ; H&K G3/SG-1 Sniper Rifle
amx_restrict on sg550 ; Sig SG-550 Sniper
amx_restrict on m249 ; FN M249 Para
amx_restrict on vest ; Kevlar Vest
amx_restrict on vesthelm ; Kevlar Vest & Helmet
amx_restrict on flash ; Flashbang
amx_restrict on hegren ; HE Grenade
amx_restrict on sgren ; Smoke Grenade
amx_restrict on defuser ; Defuse Kit
amx_restrict on nvgs ; NightVision Goggles
amx_restrict on shield ; Tactical Shield
amx_restrict on primammo ; Primary weapon ammo
amx_restrict on secammo ; Secondary weapon ammo
viljr
viljr
Juunior
Liitus : 01/01/2015
Postitusi : 86

Postitamineviljr on 09.01.15 0:10

Suured tänud sulle ,et leitsid selle aja mulle :)
Võid teema lukku panna.

Vaata eelmist teemat Vaata järgmist teemat Tagasi üles

Soovid reklaamidest vabaneda?

Selleks logi sisse või tee endale kasutaja.

Liitu foorumiga

Tee endale kasutaja ning osale aruteludes.


Tee uus kasutaja

Logi sisse

Omad foorumis juba kasutajat? Logi sisse.


Logi sisse

 
Permissions in this forum:
Sa ei saa vastata siinsetele teemadele