GetPCIPAddress(object)
PCのIPアドレスを取得します。
string GetPCIPAddress( object oPlayer );
Parameters
oPlayer
IPアドレスを返したいプレイヤー
Description
サーバーに接続しているoPlayerからIPアドレスを取得し返します。
Version
1.28
Example
// PCのIPアドレスに基づいた文章を表示します。
void main()
{
if(GetPCIPAddress(OBJECT_SELF)=="127.0.0.1")
{
ActionSpeakString("All hail the host!");
}
else
{
ActionSpeakString("I cower before the almighty host");
}
}
See Also
| categories: | PC Only Functions | Server Functions |
author: Sarev0k, editor: Charles Feduke, JP team: Rainie
Send comments on this topic.