@balu92 and I were testing a bit.6 minutes later...
Are you done yet?![]()
wasn't it hard now, was it?
ini.GetSetting won't give you a Vector3Ok... little help please...
I have
Why can't it teleport player? Help please...Python:cmd.User.Teleport(ini.GetSetting("MapPosition", cmd.User.SteamID))
In ini it looks like this: 765611988888888=(205.5, 2.9, 979.8)ini.GetSetting won't give you a Vector3
It don't know's if that's a vector3 or a simple string or what...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?
Ok... Thanks.. will try something!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)
This really worked... Will it save on server data for ever?DataStore.Add("MapPosition", cmd.User.GameID, v3)
location = DataStore.Get("MapPosition", cmd.User.GameID)
if someone breaks the DataStore with non-serializable data, it will be lost. Otherwise it will be there till you don't remove PlutonDatastore.dsThis really worked... Will it save on server data for ever?
Thanks for help!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
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.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?
Who Said It was?xdwasn't it hard now, was it?![]()
Player.SendConsoleCommand("xyz") should work I guess.Is it possible to make plugin to submit command to console like "status"?
But will this code submit it after timer with no "Player"...?Player.SendConsoleCommand("xyz") should work I guess.
what does status do?Is it possible to make plugin to submit command to console like "status"?
"status" was as example... It shows some info about players...what does status do?