// TMW2 script // Author: Jesusalva // // @ipcheck // #ipcheck // // 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, 100, 1; end; } // TMW2 script // Author: Jesusalva // // @checkidle // #checkidle // // Returns user idle time in seconds. // Useful when the game prohibits warping to player. - script @checkidle 32767,{ end; OnCall: if (.@atcmd_numparameters == 0) .@request$ = strcharinfo(0); else .@request$ = implode(.@atcmd_parameters$, " "); dispbottom strip(.@request$)+" idle time: "+checkidle(.@request$); //dispbottom strcharinfo(0)+": IP "+getcharip(.@request$); end; OnInit: bindatcmd "checkidle", "@checkidle::OnCall", 60, 80, 1; end; }