Author Topic: need help with scripting (im new)  (Read 649 times)

0 Members and 1 Guest are viewing this topic.

Offline [Project-Ult]Jake

  • Major(1)
  • Posts: 3
  • attempting to be a coder (just started learning)
need help with scripting (im new)
« on: March 23, 2008, 03:29:47 am »
hey all,

i need to know what you type it to make it so only admins can use a command and where do i put it?


thanks
« Last Edit: March 23, 2008, 03:37:15 am by [Project-Ult]Jake »

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: need help with scripting (im new)
« Reply #1 on: March 23, 2008, 07:45:48 am »
Hi there

http://forums.soldat.pl/index.php?topic=7411.0

But this might not be trivial, so go to

http://enesce.com/help/

And from there:

Quote
OnAdminMessage
procedure OnAdminMessage(IP, Msg: string)

Parameter Info:
IP (String): IP Address of the admin who sent the command.
Msg (String): Command received by the admin.

Description:
This procedure will be called every time a TCP Admin sends data to the Server.
Note: REFRESH, SHUTDOWN and, REFRESHX will not be called with this function.
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai

Offline [Project-Ult]Jake

  • Major(1)
  • Posts: 3
  • attempting to be a coder (just started learning)
Re: need help with scripting (im new)
« Reply #2 on: March 23, 2008, 10:15:26 am »
thanks :D