Results 1 to 4 of 4
  1. #1
    CoLDarkness's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    On the face of 100$ bill ( ͡° ͜ʖ ͡°)
    Posts
    187
    Reputation
    10
    Thanks
    24
    My Mood
    Devilish

    In-Game Script Loader

    This might give some people ideas.

    Code:
    function theloader(player,cmd,args)
    	local truepath = "vinci/"..args[1]
    	if file.Exists(truepath,"GAME") then
    		local contents = file.Read(truepath,"GAME")
    		assert(CompileString( contents, tostring(math.random()) ))()
    	else
    		Msg("File not found.")
    	end
    end
    
    function theautocomplete()
    	local thelist = {}
    	local list = file.Find("vinci/*.lua","GAME")
    	for _, f in pairs(list) do
    		table.insert(thelist,"vinci_load "..f)
    	end
    	return thelist
    end
    
    
    
    concommand.Add( "vinci_load", theloader, theautocomplete )
    Auto-complete is skidded. Deal with it.

  2. #2
    hilo peeps's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    82
    Reputation
    10
    Thanks
    48
    My Mood
    Amazed
    or make a module that lets you load from anywhere on ur computer

  3. The Following 2 Users Say Thank You to hilo peeps For This Useful Post:

    D3M0L1T10N (03-03-2014),Kellyseveride (03-02-2014)

  4. #3
    Boxedin123's Avatar
    Join Date
    Jun 2011
    Gender
    female
    Location
    Under Garry's Bed
    Posts
    24
    Reputation
    10
    Thanks
    32
    My Mood
    Mellow
    This is how i learn if there was NOTHING public i would be fuck out of luck.

  5. #4
    JDawg147's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    237
    Reputation
    10
    Thanks
    183
    Quote Originally Posted by Axisofaj View Post
    Original comment removed and quote cleaned up.
    Stop being an enabler, you're ruining it for people that know what they're doing.
    If information parties may or may not know was never shared, you wouldn't be using that computer you have right now.
    Last edited by Xenocide; 03-03-2014 at 12:49 AM. Reason: Cleanup.

Similar Threads

  1. [Help Request] Kick Person From Game Script
    By marcusisnumber4 in forum DayZ Help & Requests
    Replies: 1
    Last Post: 02-24-2013, 07:01 PM
  2. [WTS] Cheap spawning service all maps vehicles,guns,in game script menu for players ect
    By catmanbredrin in forum DayZ Selling / Trading / Buying
    Replies: 41
    Last Post: 01-06-2013, 06:18 PM
  3. [Discussion] dBased - How do you make the MAT Automaton script loader
    By NaZi~C0DerZ~ in forum Mission Against Terror Discussions
    Replies: 39
    Last Post: 02-22-2012, 03:41 AM
  4. [Solved] Crossfire in-game loader
    By kickface222 in forum CrossFire Help
    Replies: 4
    Last Post: 12-26-2011, 01:22 PM
  5. Game In script
    By Allidoiswins in forum CrossFire Help
    Replies: 1
    Last Post: 07-30-2010, 06:23 AM