Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
0 Active | 45 Guests
Online:

LATEST FORUM THREADS

»
Gaming
Q4 General
eXtreme+ v2.9
CoDBO Map + Mod Releases
map loading error
CoD2 MP Mapping
Good Servers on PC
CoDBO General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: search a function
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 23, 2012 04:34 am
is there any function, which gives back the player's IP?
like getguid().
i need the ip which is listed in /rcon status.

if theres no function like this, how can i do it to have a client's ip?
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 23, 2012 06:36 am
player.entnum = player getEntityNumber()
Share |
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, May. 23, 2012 10:06 am
i need the IP, not the client ID
Share |
Dobriy
General Member
Since: Mar 31, 2011
Posts: 96
Last: May 23, 2012
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, May. 23, 2012 11:05 am
nothing
Share |
robson1014
General Member
Since: Jan 6, 2011
Posts: 7
Last: May 25, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Friday, May. 25, 2012 12:47 pm
Euhmm, its possible but should be messed up. You can only get it by get cvar status, then strtok, choose correct string, get players IP. Im not sure thats possible
Share |
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Friday, May. 25, 2012 02:26 pm
getcvar status? it is possible?
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, May. 26, 2012 02:12 am
robson1014 writes...
Quote:
Euhmm, its possible but should be messed up. You can only get it by get cvar status, then strtok, choose correct string, get players IP. Im not sure thats possible



No its not possiblle. "Status" is a command, not dvar..

edited on May. 26, 2012 02:13 am by BraX
Share |
kungfooman
General Member
Since: Jun 29, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Friday, Jun. 29, 2012 07:23 pm
B3 could set a cvar_status on every player_connect().
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 05:13 am
B3 is a third party mod, you can get someones IP from B3 but from a regular mod it is impossible to get someones IP
Share |
kungfooman
General Member
Since: Jun 29, 2012
Posts: 10
Last: Jul 17, 2012
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Jun. 30, 2012 05:38 am
The only problem is, that "status" is a command. When he would use B3 to ask the "status" via rcon, then B3 could set a "cvar_status".

This way, the IP is transported into the "GSC-Athmosphere". Now he can strtok() the "cvar_status" on every player_connect() and assign every player an IP.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»