These are chat archives for ikkentim/SampSharp

22nd
Feb 2017
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 16:35
Do you guys suggest a better way to do this?
blob
Tim Potze
@ikkentim
Feb 22 2017 16:37
Hook onto the stream in stream out events in your vehicle class
Count from there
Make sure to also count down when a player disconnects
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 16:39
Thanks ^.^
I was looking at Incognito's source code, trying to re-script it for C# so I don't have to make useless Invokes to a plugin.
You know what I mean?
  • like I said, I'mma control freak, and being able to mod the object streamer to stream bigger objects first is a good thing.
Hey cool you can indent messages with +
  • indent
Pretty neat
Tim Potze
@ikkentim
Feb 22 2017 16:43
Yea but I'm 99% sure it's still faster to use incognito's because it's data contains are blazing fast + cpp is faster + it exists already
Florian van Dillen
@fvandillen
Feb 22 2017 16:44
I tried calling SetPlayerName with native.invoke
But it doesn't do anything
Any ideas?
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 16:44
@ikkentim
I'll run the benchmarks then :P
Tim Potze
@ikkentim
Feb 22 2017 16:45
That's weird, have you tied doing the same in a filterscript to see if it works there?
Florian van Dillen
@fvandillen
Feb 22 2017 16:56
Never use filterscripts since using Samp#
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 22:00
@ikkentim
To get stream_distance from server.cfg I just Server.GetConsoleVariable<float>("stream_distance"); ?
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 22:08
Nevermind, tested it and the answer is no
blob
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 22:14
This works:
float.Parse(Server.Config.Get("stream_distance", "300.0"));
Michael Kilpatrick
@NewbProgramming
Feb 22 2017 22:35
I made a dynamic map system, I just .mapload <name> in-game and it creates the vehicles/object and removes buildings from a .pwn file :D