How to create autoban for one hour if a player kills another player in safe zone??
BEC? Battleye? RCON? How?
How to create autoban?
-
SlimRF -
3. November 2016 um 23:26 -
Geschlossen -
Erledigt
-
-
You're on the right website, only ze germans know how to create a good autobahn
-
- Offizieller Beitrag
You're on the right website, only ze germans know how to create a good autobahn
Musste schwunzeln.
-
Gooooooooooooooooood Moooooooorning Native-Network,
you could try it via a Trigger and a Script, streamed by the Server (streamed cause of the Security).
i would writ it in the file fn_onPlayerKilled with a simpel if (_killer near marker1) then {, but i'm not completely sure about that^^
i just ban them by myself^^you could try something like this:
Code
Alles anzeigenif (!isNull _killer && {_killer != _unit} && {side _killer != west}) then { if (side _killer != west) then { mark = getmarkerpos "Safezone"; baseRad = 500; killerNearMark = {_killer distance mark < baseRad}; if (_killer killerNearMark) then { [_killer] remoteExec ["life_fnc_autoban",RANY]; }; }; };
I'm not completely sure about how you should make the remoteExec call, but you will have to give the _killer as a parameter for the Ban Script...
Greetings
-
Just for the Record, my previous Post is just a opportunity how it could work, it is not tested yet and i'm not sure if i will test it, couse i think i don't need it.
-
Simple Serverside Ban:
Code
Alles anzeigen/* File: fn_simpleban Description: Ban a player because of Stig Parameter: 1 - unit to ban Examples: Client: _playerToBan remoteExecCall ["STIG_fnc_simpleban",2,false] Server: _playerToBan call STIG_fnc_simpleban */ if((!isPlayer _this) or !isServer)exitWith{}; SERVERCOMMANDPASSWORDinSERVERCFG serverCommand (format ["exec ban %1%2%1","'", getPlayerUID _this]);
Not tested.
DONT put it into your mission, use life_server or a new mod because other people should not see SERVERCOMMANDPASSWORDinSERVERCFG.Have fun
-
Simple Serverside Ban:
Code
Alles anzeigen/* File: fn_simpleban Description: Ban a player because of Stig Parameter: 1 - unit to ban Examples: Client: _playerToBan remoteExecCall ["STIG_fnc_simpleban",2,false] Server: _playerToBan call STIG_fnc_simpleban */ if((!isPlayer _this) or !isServer)exitWith{}; SERVERCOMMANDPASSWORDinSERVERCFG serverCommand (format ["exec ban %1%2%1","'", getPlayerUID _this]);
Not tested.
DONT put it into your mission, use life_server or a new mod because other people should not see SERVERCOMMANDPASSWORDinSERVERCFG.Have fun
The Ban System of RCON is working with GUID and not Steam64ID I think so.
-
serverCommand ist special, unlike normal RCON it works with the Steam ID too.
-
Simple Serverside Ban:
Code
Alles anzeigen/* File: fn_simpleban Description: Ban a player because of Stig Parameter: 1 - unit to ban Examples: Client: _playerToBan remoteExecCall ["STIG_fnc_simpleban",2,false] Server: _playerToBan call STIG_fnc_simpleban */ if((!isPlayer _this) or !isServer)exitWith{}; SERVERCOMMANDPASSWORDinSERVERCFG serverCommand (format ["exec ban %1%2%1","'", getPlayerUID _this]);
Not tested.
DONT put it into your mission, use life_server or a new mod because other people should not see SERVERCOMMANDPASSWORDinSERVERCFG.Have fun
client: [getPlayerUID player,60," ban / 1 hour"] remoteExecCall ["TON_fnc_simpleban",2,false"];
but i do not understand how create server file
-
Zitat
client: [getPlayerUID player,60," ban / 1 hour"] remoteExecCall ["TON_fnc_simpleban",2,false"];
but i do not understand how create server file
create the file in your life_server and add it to config.hpp
-
wrong syntax. Simple ban doesn't support temp bans or reasons.
-
wrong syntax. Simple ban doesn't support temp bans or reasons.
jep