2018-09-08 18:29:30 -04:00
|
|
|
var plugin = {
|
|
|
|
author: 'RaidMax',
|
2018-10-09 21:19:06 -04:00
|
|
|
version: 1.1,
|
2018-09-08 18:29:30 -04:00
|
|
|
name: 'Shared GUID Kicker Plugin',
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
2018-09-13 15:34:42 -04:00
|
|
|
// make sure we only check for IW4(x)
|
|
|
|
if (server.GameName !== 2) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// connect or join event
|
2018-10-09 21:19:06 -04:00
|
|
|
if (gameEvent.Type === 3) {
|
2019-07-05 21:53:03 -04:00
|
|
|
// this GUID seems to have been packed in a IW4 torrent and results in an unreasonable amount of people using the same GUID
|
2019-07-26 11:22:02 -04:00
|
|
|
if (gameEvent.Origin.NetworkId === -805366929435212061 ||
|
|
|
|
gameEvent.Origin.NetworkId === 3150799945255696069 ||
|
|
|
|
gameEvent.Origin.NetworkId === 5859032128210324569 ||
|
|
|
|
gameEvent.Origin.NetworkId === 2908745942105435771 ||
|
2019-07-26 11:25:05 -04:00
|
|
|
gameEvent.Origin.NetworkId === -6492697076432899192 ||
|
2019-08-28 14:45:53 -04:00
|
|
|
gameEvent.Origin.NetworkId === 1145760003260769995 ||
|
2019-08-28 14:47:38 -04:00
|
|
|
gameEvent.Origin.NetworkId === -7102887284306116957 ||
|
2019-09-30 14:00:44 -04:00
|
|
|
gameEvent.Origin.NetworkId === 3474936520447289592 ||
|
|
|
|
gameEvent.Origin.NetworkId === -1168897558496584395 ||
|
|
|
|
gameEvent.Origin.NetworkId === 8348020621355817691 ||
|
2019-10-08 18:02:22 -04:00
|
|
|
gameEvent.Origin.NetworkId === 3259219574061214058 ||
|
2019-07-26 11:25:05 -04:00
|
|
|
gameEvent.Origin.NetworkId === 3304388024725980231) {
|
2018-09-08 21:20:11 -04:00
|
|
|
gameEvent.Origin.Kick('Your GUID is generic. Delete players/guids.dat and rejoin', _IW4MAdminClient);
|
2018-09-08 18:29:30 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoadAsync: function (manager) {
|
|
|
|
},
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
},
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
}
|
|
|
|
};
|