Ââîäèì íèæåñëåäóþùèå êîìàíäû íà ñåðâåðå äëÿ òîãî ÷òîáû àêòèâèðîâàòü òó èëè èíóþ ôóíêöèþ â èãðå "Battlefield 2":
mapList.list - ñïèñîê êàðò;
mapList.configFile - óñòàíîâèòü ïóòü äëÿ ôàéëà "_mapList.con";
mapList.load - ïåðåçàãðóçèòü ôàéë "_mapList.con";
mapList.save - ñîõðàíèòü ñïèñîê êàðò â "_mapList.con";
mapList.mapCount - ïîêàçàòü êîëè÷åñòâî êàðò â ñïèñêå;
mapList.currentMap - ïîêàçàòü íàçâàíèå òåêóùåé êàðòû;
mapList.clear - î÷èñòèòü òåêóùèé ñïèñîê êàðò;
mapList.remove [íàçâàíèå] - óáðàòü âûáðàííóþ êàðòó èç ñïèñêà;
admin.listPlayers - ïîêàçàòü ñïèñîê èãðîêîâ íà ñåðâåðå;
admin.runNextLevel - çàêîí÷èòü èãðó è ïåðåéòè íà ñëåä. êàðòó;
admin.restartMap - ïåðåãðóçèòü òåêóùóþ êàðòó;
admin.banPlayer [id] [ñðîê] - áàí âûáðàííîãî èãðîêà ïî åãî ID;
admin.banPlayerKey [key_hash] [ñðîê] - áàí âûáðàííîãî èãðîêà ïî CD key õåøó;
admin.addAddressToBanList [ip] [ñðîê] - áàí âûáðàííîãî èãðîêà ïî åãî IP;
admin.removeAddressFromBanList [ip] - óáðàòü IP àäðåñ èç áàí ñïèñêà;
admin.removeKeyFromBanList [key_hash] - óáðàòü CD key õåø èç áàí ñïèñêà;
admin.clearBanList - î÷èñòèòü âñå áàí ëèñòû;
admin.listBannedAddresses - ñïèñîê çàáàííåíûõ IP àäðåñîâ;
admin.listBannedKeys - ñïèñîê çàáàííåíûõ CD êëþ÷åé;
admin.kickPlayer [ID number] - âûêèíóòü èç èãðû óêàçàííîãî èãðîêà.
Âàðèàíòû ñðîêîâ äëÿ áàíà:
perm - íàâñåãäà;
round - äî ñëåäóþùåé êàðòû;
[÷èñëî] - êîëè÷åñòâî ñåêóíä.
Ðàçðåøàåì äîñòóï ê óäàë¸ííîé êîíñîëè:
Íà ñåðâåðå ñîçäà¸ì â admin ôàéë "default.cfg" è çàïèñûâàåì â íåãî ñëåäóþùèå ñòðîêè:
port=4711
password=YourPassword
Ñîõðàíÿåì ôàéë è çàïóñêàåì ñåðâåð. Òåïåðü ñåðâåð ìîæåò óïðàâëÿåòüñÿ óäàë¸ííî ñ ïîìîùüþ ñëåäóþùèõ êîìàíä:
- rcon login - ëîãèí íà ñåðâåð;
- rcon users - ñïèñîê þçåðîâ íà ñåðâåðå;
- rcon exec - çàïóñê êîìàíäû óäàë¸ííî íà ñåðâåðå (íàïðèìåð: rcon exec admin.kickPlayer 3).
Êîììåíòàðèè îòêëþ÷åíû
Ñòðàíèöà "Êîäû äëÿ èãðû Battlefield 2" îïóáëèêîâàíà â ðóáðèêå Ñåêðåòû è êîäû ïîäðóáðèêå
B