collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: !logon module  (Read 5974 times)

0 Members and 1 Guest are viewing this topic.

Offline okegima

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
!logon module
« on: June 01, 2009, 07:18:05 pm »
hi all. after checking on the forum and wiki, can you tell me if there is a module existing allowing admin and owner to add logon comment on a player ?
like this : !logon <player> <message>
i know the owner can do it directly on the mysql, but for admin it is a bit difficulte :)

so, if there an existing module please link me the files or write the code at the following. i'll be interrested.

thank you.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: !logon module
« Reply #1 on: July 08, 2009, 11:32:03 am »
Try to add this to the command_handler


if (preg_match("/^logonadmin ([a-zA-Z0-9]+) (.+)/i"$msg$info))
{
	
	
	
return 
$this -> set_msg(ucfirst(strtolower($info[1])), $info[2]);
}


and this to the construct


$this 
-> register_command("all""logonadmin""ADMIN");


Didn't test it but I guess it should work.
« Last Edit: July 08, 2009, 11:54:47 am by Nogoal »

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 205
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal