summaryrefslogtreecommitdiff
path: root/npc/commands/ipcheck.txt
blob: a610c84cd3c9bc8078c47e8855b8c6e77a03ca48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// TMW2 script
// Author: Jesusalva <admin@tmw2.org>
//
// @ipcheck <player_name>
// #ipcheck <player_name>
//
// Returns user IP


-	script	@ipcheck	32767,{
    end;

OnCall:
    if (.@atcmd_numparameters == 0)
    	.@request$ = strcharinfo(0);
    else
    	.@request$ = implode(.@atcmd_parameters$, " ");
    dispbottom strip(.@request$)+": IP "+getcharip(.@request$);
    //dispbottom strcharinfo(0)+": IP "+getcharip(.@request$);
    end;

OnInit:
    bindatcmd "ipcheck", "@ipcheck::OnCall", 80, 80, 1;
    end;
}