Plugin len pre určitých adminov
Napsal: 14 led 2012, 02:32
od casper10
Vie mi niekto poradiť, ako obmedziť fungovanie pluginu v TF2 (konkrétne teamswitch) tak, aby ho mohol využívať len niektorý admin (nie všetci)? Ešte dodatočná info - vie niekto poradiť, ako logovať úplne všetok text, ktorý hráči napíšu počas hry?
Re: Plugin len pre určitých adminov
Napsal: 14 led 2012, 13:21
od Mysteria
Nějaké pluginy to mají zabudované v sobě, že se u nich může nastavit přístupové právo admina (a, b, c, d, ...) a ten je pak bude moci používat. Bohužel TeamSwitch k nim nepatří, takže by jsi si to tam musel dodělat sám

Re: Plugin len pre určitých adminov
Napsal: 16 led 2012, 01:02
od casper10
Našiel som jedneho čo sa s tým pohral, pre flag "o" to môže byť takto v súbore
...addons/sourcemodconfigs/admin_overrides.cfg
(ak by ste to niekto potrebovali)
Kód: Vybrat vše
{
/**
* By default, commands are registered with three pieces of information:
* 1)Command Name (for example, "csdm_enable")
* 2)Command Group Name (for example, "CSDM")
* 3)Command Level (for example, "changemap")
*
* You can override the default flags assigned to individual commands or command groups in this way.
* To override a group, use the "@" character before the name. Example:
* Examples:
* "@CSDM" "b" // Override the CSDM group to 'b' flag
* "csdm_enable" "bgi" // Override the csdm_enable command to 'bgi' flags
*
* Note that for overrides, order is important. In the above example, csdm_enable overwrites
* any setting that csdm_enable previously had.
*
* You can make a command completely public by using an empty flag string.
*/
"teamswitch" "o"
"teamswitch_death" "o"
"teamswitch_roundend" "o"
"teamswitch_spec" "o"
"ts_immed" "o"
"ts_death" "o"
"ts_rend" "o"
"ts_spec" "o"
}