Posts: 174
Threads: 10
Joined: Jun 2011
Reputation:
0
Player Can See it In SAMP The IP
Or maybe you mean Obtain an IP
START>RUN>In Run Type>"CMD"(Without("))>In CMD Type "IPCONFIG(Without("))>Show The IP Adress You Understand??
Posts: 1,363
Threads: 14
Joined: Apr 2009
Reputation:
0
256 sized strings, I'm not sure if smiley is joking or serious.
you can put in the server.cfg
"nosign ipaddress"
and then use GetServerVarAsString("nosign",string,sizeof(string ));
afaik nosign doesn't do anything but you can retrieve it from the cfg
Posts: 1,801
Threads: 27
Joined: Mar 2009
Reputation:
0
No, I want to get server's IP, to make a secure script, if server's IP is not my IP, or IP of the host, the server will exit ( SendRconCommand("exit"); )
I know, I'm not the best at english xD
Posts: 485
Threads: 9
Joined: May 2011
Reputation:
0
This is probably a really bad idea, but you could make a NPC join, grab its IP, then kick it.