http://oliver-decramer.com/programs.Pro ... l?prgId=11
Screen Shoots
The Menu

The Menu With MLEPP AdminPanel(soon)


Moderator: NADEO
Code: Select all
$button["plugin"]=$this;
$button["style"]="Icons64x64_1";
$button["substyle"]="GenericButton";
$parent = $menu->addButton("admin", "Basic Commands",$button);
if($parent){
$button["function"]="restart";
$button["style"]="Icons64x64_1";
$button["substyle"]="ArrowNext";
$button["permission"]="next";
$menu->addButton($parent, "Restart",$button);
$button["function"]="next";
$button["style"]="Icons64x64_1";
$button["substyle"]="Refresh";
$button["permission"]="restart";
$menu->addButton($parent, "Next",$button);
}
Ah, the way to achieve that is easy:oliverde8 wrote:No, What I want is to make as if a player has entered the command.
For example I add a Button List, when I click on it I want to have the result I would have if I had entered/list
Code: Select all
function list($login) {}
Code: Select all
// [...]
$button->setAction($this->callback('list'));
Code: Select all
$this->registerChatcommand('list', 'list', 0, true);
A method to feign chat input from a player does not exist.aseco wrote:Eine Methode um eine Chateingabe eines Spielers vorzutäuschen gibt es nicht
tcq wrote:A method to feign chat input from a player does not exist.aseco wrote:Eine Methode um eine Chateingabe eines Spielers vorzutäuschen gibt es nicht
I can't do it then?aseco wrote:tcq wrote:A method to feign chat input from a player does not exist.aseco wrote:Eine Methode um eine Chateingabe eines Spielers vorzutäuschen gibt es nichtThanks, my thoughts must've been somewhere else ...
Code: Select all
$button->setAction($this->callback('list'));
$this->registerChatcommand('list', 'list', 0, true);
Code: Select all
<button caption="Fufi Widgets(on/off)" Chat="/togglewidgets" />
Users browsing this forum: No registered users and 1 guest