IW4M-Admin/Plugins/ScriptPlugins/SharedGUIDKick.js
RaidMax 39596db56e fixed rating and kill streak bug, but uncommenting something I forgot I commented out
Added SharedGUIDKick plugin to kick people with shared GUID
2018-09-08 17:29:30 -05:00

24 lines
607 B
JavaScript

var plugin = {
author: 'RaidMax',
version: 1.0,
name: 'Shared GUID Kicker Plugin',
onEventAsync: function (gameEvent, server) {
// connect event
if (gameEvent.Type === 3 ||
gameEvent.Type === 4) {
if (gameEvent.Origin.NetworkId === -805366929435212061) {
gameEvent.Origin.Kick('Your GUID is generic. Delete players/guids.dat and rejoin', _utilities.IW4MAdminClient);
}
}
},
onLoadAsync: function (manager) {
},
onUnloadAsync: function () {
},
onTickAsync: function (server) {
}
};