[QUOTE=log404;45957006]I know its client side but how would i make it work server side[/QUOTE]
You mean the other way around right - it's server side but you want to call it client side?
[QUOTE=wh1t3rabbit;45957018]You mean the other way around right - it's server side but you want to call it client side?[/QUOTE]
No its client side i need server side lol
If you think it's client side I recommend you read the wiki page on it then. [url]http://wiki.garrysmod.com/page/Player/IPAddress[/url]
Do you know what means server and client side?
omg if you use ply:IPAddress() it will send your ip ... i need it to send the player im targeting ip ...
[QUOTE=log404;45958145]omg if you use ply:IPAddress() it will send your ip ... i need it to send the player im targeting ip ...[/QUOTE]
If you are running code client side there is no way to get another players ip address WITHOUT some server side component. Show us your code and maybe we can help better.
[QUOTE=log404;45958145]omg if you use ply:IPAddress() it will send your ip ... i need it to send the player im targeting ip ...[/QUOTE]
So you shown us that you don't have idea what's client side part it's
You can get it from the server...But you can't reach it from the client...It's server side
From the client, you need to ask to the server the ip, and then send it to the client that did the request, that's how usually works the server<->client communication, that can be reached by net messages (I'm sure that you will make another thread asking "How can i send an ip to the client" because you don't take the time for visit the megathread of questions)
PrintMessage(IPAddress())
[QUOTE=log404;45961789]PrintMessage(IPAddress())[/QUOTE]How the fuck can you be a trusted coder(do jobs) when you don't even know a simple thing like this.
[URL="http://coderhire.com/users/view/1385"]http://coderhire.com/users/view/1385[/URL]
[QUOTE=log404;45961789]PrintMessage(IPAddress())[/QUOTE]
Stop trying and go to learn lua/glua
[QUOTE=CoreBase;45961826]How the fuck can you be a trusted coder(do jobs) when you don't even know a simple thing like this.
[URL="http://coderhire.com/users/view/1385"]http://coderhire.com/users/view/1385[/URL][/QUOTE]
Seems like he might be a trusted paster instead. :v:
[QUOTE=CoreBase;45961826]How the fuck can you be a trusted coder(do jobs) when you don't even know a simple thing like this.
[URL="http://coderhire.com/users/view/1385"]http://coderhire.com/users/view/1385[/URL][/QUOTE]
Its called never working with some thing for one.
I don't understand you jibberish when you say you need to net it k bye no one understands what you mean just an FYI
[editline]12th September 2014[/editline]
I get it now thanks for your "help" LOL [url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] for only one that needs this with out the scrubs
What the hell are you trying to say/ask?
[QUOTE=log404;45957220]No its client side i need server side lol[/QUOTE]
[QUOTE=log404;45958145]omg if you use ply:IPAddress() it will send your ip ... i need it to send the player im targeting ip ...[/QUOTE]
[QUOTE=log404;45961789]PrintMessage(IPAddress())[/QUOTE]
Maybe that's why we aren't that polite
[QUOTE=gonzalolog;45962049]Maybe that's why we aren't that polite[/QUOTE]
Don't see what your pointing out but ok?
If you don't know what are you doing, don't question what are we trying to correct you, we told you that's server side, you kept saying "Its client side lol"
We told you HOW you must solve this
[I]"From the client, you need to ask to the server the ip, and then send it to the client that did the request, that's how usually works the server<->client communication, that can be reached by net messages"[/I]
And you kept "[I]Oh guys, you're scrub cuz u don't tell me how i do this[/I]"
So please, if you are going to ask us something , do research, it's not your first thread that you ask something that you can search on google or can't be posted on the questions megathread...
[QUOTE=gonzalolog;45962402]If you don't know what are you doing, don't question what are we trying to correct you, we told you that's server side, you kept saying "Its client side lol"
We told you HOW you must solve this
[I]"From the client, you need to ask to the server the ip, and then send it to the client that did the request, that's how usually works the server<->client communication, that can be reached by net messages"[/I]
And you kept "[I]Oh guys, you're scrub cuz u don't tell me how i do this[/I]"
So please, if you are going to ask us something , do research, it's not your first thread that you ask something that you can search on google or can't be posted on the questions megathread...[/QUOTE]
Explaining how to do it not going to do shit if I'm asking how to do it its cause I don't know how to do it so telling me how to do it with no example is just a waste of time lol
If it is solved, mark it as solved. This is a forum for developer HELP not
"lul scrubs giev m3 fr33 c0de pls l0l "
[QUOTE=log404;45962438]Explaining how to do it not going to do shit if I'm asking how to do it its cause I don't know how to do it so telling me how to do it with no example is just a waste of time lol[/QUOTE]
Most of people here just asked for help only in the extreme case that they couldn't find a solution, all what i learned was reading the wiki, if you really can't find something there, go to gmod.org and search for addons and try to read the code...That's how do you learn, not asking people to code for you
[QUOTE=gonzalolog;45962650]Most of people here just asked for help only in the extreme case that they couldn't find a solution, all what i learned was reading the wiki, if you really can't find something there, go to gmod.org and search for addons and try to read the code...That's how do you learn, not asking people to code for you[/QUOTE]
Not arguing with you there's no point
It makes me fear for the future of human civilization with how you type.
[QUOTE=log404;45962354]Don't see what your pointing out but ok?[/QUOTE]
You are very bad at English
[QUOTE=zerothefallen;45963015]You are very bad at English[/QUOTE]
I don't know what you mean by I'm bad at English there was nothing wrong with what I put unless your talking about the you're and if you are please zero that's was not needed one bit.
Pretty sure this is a troll
[QUOTE=circuitbawx;45963282]Pretty sure this is a troll[/QUOTE]Sadly it isn't.
[QUOTE=log404;45963242]unless [B]your[/B] talking about the you're...[/QUOTE]
How on earth do you still make the same mistake?
Your IQ is clearly 100 >>>>
Holy shit this is a fucking stupid thread.
[LUA]if SERVER then
util.AddNetworkString("gimmedaip")
net.Receive("gimmedaip", function( len, ply )
local ent = net.ReadEntity()
net.Start("gimmedaip")
net.WriteEntity( ent )
net.WriteString( ent:IPAddress() )
net.Send( ply )
end)
else
net.Receive("gimmedaip", function()
local ent = net.ReadEntity()
if !IsValid( ent ) then return end
local ip = net.ReadString()
ent._ipaddress = ip
MsgN( ent:Name()..'s IP Address is: '.. ip)
end)
function PrintPlayerIP( ply )
net.Start( "gimmedaip" )
net.WriteEntity( ply )
net.SendToServer()
end
end
[/LUA]
There's everything you need to "not be huge scrub!!!'
However, asking further questions about this EXTREMELY BASIC code will leave you liable to being labelled even more of an idiot (if that's even possible).
(And no, I will not provide more Validity checking)
Good luck.
It's not the first time that their threads turns into a hate thread, this user it's really lazy, stubborn, ask for "Examples" that 'didnt work' and doesn't seem to being respectful with our tips
They don't want told how to do it even with links to relevant tutorials.
[quote]Explaining how to do it not going to do shit if I'm asking how to do it its cause I don't know how to do it so telling me how to do it with no example is just a waste of time lol[/quote]
OP just wanted us to give them working finished code.
Sorry, you need to Log In to post a reply to this thread.