Author Topic: Admin status script help please  (Read 793 times)

0 Members and 1 Guest are viewing this topic.

Offline Zyyn

  • Major(1)
  • Posts: 21
Admin status script help please
« on: May 19, 2007, 02:09:38 pm »
I am trying to make a script that lets people know what admin is on and who isn't.
I got something like this, but I have no idea if it would work. I just got it from another script and modified it.

var
Zyynafk: string;

procedure ActivateServer();
begin
Zyynafk := '0';
end;

function OnPlayerCommand(ID: Byte; Text: string): boolean;
begin
if (message = '/zyynafk') then begin
if (Zyynafk = '0') then begin
   Zyynafk := '1';
   WriteConsole(0,'Zyyn has set status to afk.),RGB(0,255,255));
   DrawText(0,'Set status to afk.',330,RGB(255,0,0),1.10,20,370);
   end;
end;
end;

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Admin status script help please
« Reply #1 on: May 21, 2007, 08:46:21 pm »
replace "message" with "Text"