Important Pluton for Experimental Branch

Status
Not open for further replies.
7ZK3iNT.png
 
Ok... little help please...
I have
Python:
cmd.User.Teleport(ini.GetSetting("MapPosition", cmd.User.SteamID))
Why can't it teleport player? Help please...
 
Ok... little help please...
I have
Python:
cmd.User.Teleport(ini.GetSetting("MapPosition", cmd.User.SteamID))
Why can't it teleport player? Help please...

ini.GetSetting won't give you a Vector3
 
ini.GetSetting won't give you a Vector3
In ini it looks like this: 765611988888888=(205.5, 2.9, 979.8)
Why can't it just take it from ini and use it?
Then how to make it to work or save it right?
 
In ini it looks like this: 765611988888888=(205.5, 2.9, 979.8)
Why can't it just take it from ini and use it?
Then how to make it to work or save it right?
It don't know's if that's a vector3 or a simple string or what...
DataStore should be able to serialize and deserialize Vector3s

DataStore.Add("MapPosition", cmd.User.GameID, v3)
location = DataStore.Get("MapPosition", cmd.User.GameID)
 
It don't know's if that's a vector3 or a simple string or what...
DataStore should be able to serialize and deserialize Vector3s

DataStore.Add("MapPosition", cmd.User.GameID, v3)
location = DataStore.Get("MapPosition", cmd.User.GameID)
Ok... Thanks.. will try something!
 
This really worked... Will it save on server data for ever?
if someone breaks the DataStore with non-serializable data, it will be lost. Otherwise it will be there till you don't remove PlutonDatastore.ds
 
In ini it looks like this: 765611988888888=(205.5, 2.9, 979.8)
Why can't it just take it from ini and use it?
Then how to make it to work or save it right?

That's what a Vector3.ToString() looks like. To convert the string back to a Vector3, strip the parentheses and commas, and parse each number to a float. Then use them as arguments to instance a new Vector3. This is exactly what DataStore does when someone saves a Vector3 to it, and recalls it later.
 
Is it possible to make plugin to submit command to console like "status"?
 
Player.SendConsoleCommand("xyz") should work I guess.
But will this code submit it after timer with no "Player"...?
Looks like it needs a person what does it with admin powers...

Is there a code what does it without a person?
 
what does status do?
"status" was as example... It shows some info about players...
My question was how to submit command to console without players... Only simple command submit...
 
Status
Not open for further replies.