Clickable Commands

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

JagMan
wheelbarrow operator
wheelbarrow operator
Posts: 23
Joined: 28 Aug 2009 23:22
Owned TM-games: TMNF

Re: Clickable Commands

Post by JagMan » 06 Sep 2010 08:38

Hi all ~ :)
Because i am to noob in php and stuff .. i am forced to post here my little wish.. hope you guys don't mind it :-s

I just want a little Panel for Chat based Votes... i mean, 2 clickable buttons, Res(chat command= /replay) and Next(chat command= /skip), and a title in the middle-front of the Panel named Vote Panel.. That's all ^^
I hope someone will have enough time for my noob-wish:)
Thank you in advance !

User avatar
sterretje22
road tourist
road tourist
Posts: 87
Joined: 29 May 2010 23:47
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): fireteam
Location: Oudenburg(BE)
Contact:

Re: Clickable Commands

Post by sterretje22 » 22 Oct 2010 17:56

I know that nouse had made a plug-in
jou.plugin.php
I don't know where I found it
Our where u can find it
I think nouse will know the right link for u :p
`·.¸¸.->ѕтαя~ƒιяє<-.¸¸.·´
ImageImage
Image
`·.¸¸.->~ƒιяє~<-.¸¸.·´
Image

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: Clickable Commands

Post by w1lla » 23 Oct 2010 07:43

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

pepel
cyclist
cyclist
Posts: 40
Joined: 30 Sep 2010 16:33
Owned TM-games: TMNF

Re: Clickable Commands

Post by pepel » 07 Nov 2010 16:39

can some one post a picture of this plugin buttons

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: Clickable Commands

Post by w1lla » 07 Nov 2010 16:52

read my post below yours.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: Clickable Commands

Post by DjDesidera » 23 Nov 2010 21:43

Hi all, first of all, love this little plugin (and the panel spin-off).
I have got 2 buttons and one of them I use for an admin command, so I was wondering what code to use to make the manialink visible to admins only.
Ty in advance :)
DjD
Image

jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland

Re: Clickable Commands

Post by jouko100 » 24 Nov 2010 05:20

$admin = $command['author'];
$login = $admin->login;
if ($aseco->isMasterAdmin($login)) {
code here

or

$admin = $command['author'];
$login = $admin->login;

if ($aseco->isAdmin($login)) {
code here

User avatar
DjDesidera
tricycle manager
tricycle manager
Posts: 29
Joined: 19 Dec 2009 18:12
Owned TM-games: TMU
Location: Cloud 9
Contact:

Re: Clickable Commands

Post by DjDesidera » 24 Nov 2010 12:31

perfect :)
Thats helpfull in a lot of ways, thx!

...Edit...
where ever i think its in the right place it says this in xaseco window:

Code: Select all

Fatal error: Call to a member function isMasterAdmin() on a non object in .. blablabla
i figure i cant use it to make the registerevents admin only, that would do the trick without altering rest of the button.plugin

still trying ^^
Image

Post Reply