Using a struct to temporarily store the data you requests.
And returns you the values. Instead of making one for each player and so on.
How to use:
You add it to your project outside the Form1 class. (Make a new class if want that instead)
Then, where you want to use it, you have to do like: SimpleServer SS = new SimpleServer();
And to use it: SS.GetAddress(0).Name | That will give you the Address for the name of player 1
Example Show:
This will show all the addresses to for all 18 players in a listbox.
If you use this:
Ensure you provide credit to me. (Jorndel)
Else you will be seen as a leecher :|
Need help? - (Skype) Add me: jorndel.mpgh
C#
VB
Teleport Code:
C#
Usage:
Write the value as float!
WriteFloat(Teleport(0)[0], X-Pos);
WriteFloat(Teleport(0)[1], Y-Pos);
WriteFloat(Teleport(0)[2], Z-Pos);
VB
Usage: (Can have done wrong!)
Write the value as float!
WriteFloat(Teleport(0)(0), X-Pos)
WriteFloat(Teleport(0)(1), Y-Pos)
WriteFloat(Teleport(0)(2), Z-Pos)
Thanks Jorndel..
Too bad for me, I'm VB all the way
Originally Posted by Geomatrical 0
Too bad for me, I'm VB all the way
To bad you don't bother to understand VB then. Else you would see how to use it in VB
+ You ignore me so, there is no need to provide you with information now...
Anyway, here is the quick VB, created:
Hmmm wonder if I can port something similar to this to 4D1...
(Obviously this is host controlled but gave me an idea?)
Those damn C# gods. >.<
LoL Thx bro. +rep
Originally Posted by Kenshin13
Hmmm wonder if I can port something similar to this to 4D1...
(Obviously this is host controlled but gave me an idea?)
Those damn C# gods. >.<
LoL Thx bro. +rep
Added Teleport in case you would want that :P
Thanks
Sorry for beign a noob about coding but...
I use Visual Studio 2012.
And I can code C#, VB.net and C++ whit it.
Everything in one.
Cheers.
Originally Posted by Skinksteek
Sorry for beign a noob about coding but...
I use Visual Studio 2012.
And I can code C#, VB.net and C++ whit it.
Everything in one.
Cheers.
You can't join a C++ and VB/C# project...(Im almost positive)
One is CLR the other is native...
And besides...why spam? Who cares?
@Jorndel, I knew how to do teleporting. Simple change origin changing.
On iw5m i made a server, hid myself and set me to god. Whenever I kill someone they respawn under the map xD.
Originally Posted by Kenshin13
You can't join a C++ and VB/C# project...(Im almost positive)
One is CLR the other is native...
And besides...why spam? Who cares?
@Jorndel, I knew how to do teleporting. Simple change origin changing.
On iw5m i made a server, hid myself and set me to god. Whenever I kill someone they respawn under the map xD.
I know you are able to do that, you already said it