Reneb submitted a new resource:
Custom Spawn Points - create custom spawn points for your server
Read more about this resource...
Custom Spawn Points
Create custom spawn points for your server
Total Downloads: 3,683 - First Release: May 29, 2015 - Last Update: Jun 30, 2017
- 4.73333/5, 15 likes
-
can you explain to a complet idiot how this works? i want to make a "spawn town" where people spawn. how would i go about doing this?
-
-
-
is there any way to make it reload the spawn file on a server restart automatically ?
-
Doesn't work. It sets spawns and then like 10 minutes later it's no longer using them and you have to constantly keep setting the spawns... Fix this..
-
Hey, used this to setup some Spawns inside my Start-Camp, but now I got a weired bug.
Everything below my spawn is "under water".
As I placed the spawnpoints on top of an foundation ( a little stone circle used as player spawn, like Stonehenge), nearly everything is below the spawn, so right now:
- a player connects to the server and spawns in my camp on the stone circle
- looks around and thinks: wow cool
- makes a step off the stone circle and... gets wett 100% and starts drowning. And he is running completely regulary around.
Trying to restart the server and see if this fixes it, if not, well :/
Help then ^^ please -
I also get that issue ^ pretty bad mod/plugin to be honest. I wish another dev had taken on the task of making it and actually fixed the issues people told them about... lol
-
it uses rust spawn system, you might want to set your spawn point higher in the air maybe (use admin fly to get in the air)
-
Code:
[Oxide] 8:47 AM [Error] Failed to call hook 'ccmdSpawnFile' on plugin 'CustomSpawnPoints' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 8:47 AM [Debug] at Oxide.Plugins.CustomSpawnPoints.ccmdSpawnFile (.Arg arg) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
most likely a wrong argument when you tried to use the command.
-
Will the spawn.config name command keeping after server restart? Would be great
-
after restart the spawn doesn't work any more?
-
sure
when not
auto execute spawn.config "Spawnfile" after each restart -
or this (auto execute spawn.config "Spawnfile") -
only:
spawn.config "FILENAME"
When it don't work after restart use an auto cmd plugin -
-
-
fixed it myself...
change the first part to this and make new custom spawn points no more drowning on land.
/////////////////////////////////////////
// Oxide Hooks
/////////////////////////////////////////
BasePlayer.SpawnPoint OnFindSpawnPoint()
{
if (!activated) return null;
var targetpos = Spawns.Call("GetRandomSpawn", new object[] { spawnsname });
if (targetpos is string)
return null;
BasePlayer.SpawnPoint point = new BasePlayer.SpawnPoint();
point.pos = (Vector3)targetpos;
point.rot = new Quaternion(0f,0f,0f,0f);
return point;
}
I changed the line-> point.rot = new Quaternion(1f,0f,0f,0f); to point.rot = new Quaternion(0f,0f,0f,0f); -
For some reason some of my players still drown and others dont, any idea what could cause that ?