This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.
Game mode(s) I am having this problem on:darkrp
I am trying to create a ulx command that basically sets all of the class spawns in one place in one command. This is what I have and it doesn't seem to be working.
function ulx.setspawns( calling_ply )
calling_ply:Say( "/setspawn recruit",teamOnly=false )
calling_ply:Say( "/setspawn ct",teamOnly=false )
calling_ply:Say( "/setspawn clt",teamOnly=false )
calling_ply:Say( "/setspawn ccap",teamOnly=false )
calling_ply:Say( "/setspawn 501stt",teamOnly=false )
calling_ply:Say( "/setspawn csgt",teamOnly=false )
calling_ply:Say( "/setspawn 501stmedic",teamOnly=false )
calling_ply:Say( "/setspawn 501sthws",teamOnly=false )
calling_ply:Say( "/setspawn 501stat",teamOnly=false )
calling_ply:Say( "/setspawn 501stsgt",teamOnly=false )
calling_ply:Say( "/setspawn 501stlt",teamOnly=false )
calling_ply:Say( "/setspawn 501stcap",teamOnly=false )
calling_ply:Say( "/setspawn 501starc",teamOnly=false )
calling_ply:Say( "/setspawn 212tht",teamOnly=false )
calling_ply:Say( "/setspawn 212thmedic",teamOnly=false )
calling_ply:Say( "/setspawn 212thhws",teamOnly=false )
calling_ply:Say( "/setspawn 212that",teamOnly=false )
calling_ply:Say( "/setspawn 212thsgt",teamOnly=false )
calling_ply:Say( "/setspawn 212thlt",teamOnly=false )
calling_ply:Say( "/setspawn 212thco",teamOnly=false )
calling_ply:Say( "/setspawn 2ndpa",teamOnly=false )
calling_ply:Say( "/setspawn 2ndplt",teamOnly=false )
calling_ply:Say( "/setspawn gmt",teamOnly=false )
calling_ply:Say( "/setspawn gmmedic",teamOnly=false )
calling_ply:Say( "/setspawn gmhws",teamOnly=false )
calling_ply:Say( "/setspawn gmat",teamOnly=false )
calling_ply:Say( "/setspawn gmsgt",teamOnly=false )
calling_ply:Say( "/setspawn gmlt",teamOnly=false )
calling_ply:Say( "/setspawn gmco",teamOnly=false )
calling_ply:Say( "/setspawn wpt",teamOnly=false )
calling_ply:Say( "/setspawn wpmedic",teamOnly=false )
calling_ply:Say( "/setspawn wphws",teamOnly=false )
calling_ply:Say( "/setspawn wpsgt",teamOnly=false )
calling_ply:Say( "/setspawn wplt",teamOnly=false )
calling_ply:Say( "/setspawn wpco",teamOnly=false )
calling_ply:Say( "/setspawn kshws",teamOnly=false )
calling_ply:Say( "/setspawn ksmedic",teamOnly=false )
calling_ply:Say( "/setspawn ksat",teamOnly=false )
calling_ply:Say( "/setspawn ksbs",teamOnly=false )
calling_ply:Say( "test",teamOnly=false )
end
local setspawns = ulx.command( "Fun", "ulx setspawns", ulx.setspawns, "!setspawns" )
setspawns:defaultAccess( ULib.ACCESS_ADMIN ) -- Register ULX minimum required default access. In this case, admin
setspawns:help( "Sets all spawns" ) -- show this in previously set (in ulx.command) "help" category