I'm laughing at the irony...and writing a HOWTO on var scope
<?php
const ISB_C1 1 // you can choose a standard
const ISB_C2 2 // interface colour using
const ISB_C4 4 // these 3 lowest bits - see below
const ISB_CLICK 8 // click this button to send IS_BTC
const ISB_LIGHT 16 // light button
const ISB_DARK 32 // dark button
const ISB_LEFT 64 // align text to left
const ISB_RIGHT 128 // align text to rightconst
openPrivButton ("player_".$userName."_".$id."_remove",$topleft_x+6,$topleft_y+1,
25,5,5,-1,ISB_LEFT | ISB_LIGHT,"Remove",Remove_Registered)
more clear than
openPrivButton ("player_".$userName."_".$id."_remove",$topleft_x+6,$topleft_y+1,
25,5,5,-1,80,"Remove",Remove_Registered)
?>
<?php
case "usermsg":
{
testArgs(ident, "SSS", args);
currInfoPlayer = listOfPlayers.getPlayerByUserName((string)args[1]);
if (currInfoPlayer == null)
throw new GLScript.GLApp.GLScriptException("You can't use " + ident + " in this context, not a player event");
string text = args[2].ToString();
if (text == "[[TranslateEngine]]")
text = lfsLang.replaceParmsLangStr(currInfoPlayer.idLang);
SendMsgToConnection(currInfoPlayer.UCID, "^6Personal msg from: ^8" + (string)args[0]);
SendMsgToConnection(currInfoPlayer.UCID, "^7" + text );
break;
}
?>