()get;
banlist.txt
?
I dont know, I am not much of a coder for mw2.
but some kind of a string that gets to locate and reads the file. (I am guessing AlterIWnet Dedi server)
I have seen the perm ban gsc code but is there anyway to make so it reads a .txt banlist or .gsc banlist
()get;
banlist.txt
?
I dont know, I am not much of a coder for mw2.
but some kind of a string that gets to locate and reads the file. (I am guessing AlterIWnet Dedi server)
You can't read txt files, sorry. /
You could create a GSC dedicated to adding new GUIDs and such then just check the list somehow from _rank.gsc.
Example:
_userBan.gsc
_rank.gscCode:loadSettings() { level.bannedGUIDs = []; level readBannedGUIDList(); } readBannedGUIDList() //Add GUIDs to ban here { AddGUID("1001010101010101"); AddGUID("1001253423001420"); } AddGUID(GUID) { level.bannedGUIDs[level.bannedGUIDs.size] = GUID; }
Code:init() { level thread maps\mp\gametypes\_userBan::loadSettings(); //This accesses the other GSC and reads the banned users //Rest of code from init() } onPlayerConnect() { level waittill("connected", player); //This code will kick the player if they are banned for(i = 0; i < level.bannedGUIDs.size; i++) //Goes through each banned GUID if(player.GUID == level.bannedGUIDs[i]) //If the player's GUID equals the current banned GUID kick(player getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT"); //Kick the player (sorta like a ban, they can't join without being kicked) //Rest of code from onPlayerConnect }
Last edited by master131; 05-04-2011 at 05:20 AM.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
intervention61 (05-04-2011)
Example:
Code:_userBan.gscloadSettings() { level.bannedGUIDs = []; level readBannedGUIDList(); } readBannedGUIDList() //Add GUIDs to ban here { AddGUID("1001010101010101"); AddGUID("1001253423001420"); } AddGUID(GUID) { level.bannedGUIDs[level.bannedGUIDs.size] = GUID; } _rank.gsc init() { level thread maps\mp\gametypes\_userBan::loadSettings(); //This accesses the other GSC and reads the banned users //Rest of code from init() } onPlayerConnect() { level waittill("connected", player); //This code will kick the player if they are banned for(i = 0; i < level.bannedGUIDs.size; i++) //Goes through each banned GUID if(player.GUID == level.bannedGUIDs[i]) //If the player's GUID equals the current banned GUID kick(player getEntityNumber(), "PLATFORM_STEAM_KICK_CHEAT"); //Kick the player (sorta like a ban, they can't join without being kicked) //Rest of code from onPlayerConnect }
Wups, my falt.
I didn't think about the txt question.
I was just thinking on the GSC...
Sorry
Last edited by Jorndel; 05-04-2011 at 05:33 AM.
kick( player getEntityNumber(), "EXE_PLAYERKICKED_YOUR_MESSAGE" ); // custom kick msg !!! WITH _ !!!!