Author Topic: Help with new command's !!  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

Offline Mefisto

  • Major(1)
  • Posts: 6
Help with new command's !!
« on: November 22, 2006, 03:41:23 pm »
Hay !
I really need new commands in my server...
I'm thinking about .. !help , !admin , !cheater  and the like.
Somebody can help me ? And explain how i can add these command's.

Thank you in advance.
Mefisto.

Offline cooz

  • Soldier
  • **
  • Posts: 187
  • BANNED
Re: Help with new command's !!
« Reply #1 on: November 22, 2006, 03:54:00 pm »
you can add them by writing script,
this feature is build in dedicated server since v2.5.2

edit:
this topic should be in Scripting Help imo, but anyway...

hmm, let's see you must have newes dedicated server v2.5.2
make sure that Scripting=1 in server.ini

then in scripts/NetworkCore.pas file replace
Code: [Select]
procedure OnPlayerSpeak(Name,Text: string);
begin
end;

with
Code: [Select]
procedure OnPlayerSpeak(Name,Text: string);
begin
  if Text = '!help' then begin
    SaytoPlayer(NametoID(Name), 'i could help you but i will not');
  end;

  if Text = '!givemecoffe' then begin
    SaytoPlayer(NametoID(Name), 'here''s your coffe');
  end;

end;

i didn't check code in comiler but
more or less it should be ok ::)
« Last Edit: November 22, 2006, 04:08:27 pm by cooz »
Dead man! Dead man walking! We got a dead man walking here! Banned man crawling more like

Offline Mefisto

  • Major(1)
  • Posts: 6
Re: Help with new command's !!
« Reply #2 on: November 22, 2006, 04:07:12 pm »
Hmm.. I implore you to make me this script for me :) If somebody can help me and make it for me...
Or explain how make it and give me link for download dedicated server sine v2.5.2  .. I will be really appreciative.

Offline cooz

  • Soldier
  • **
  • Posts: 187
  • BANNED
Re: Help with new command's !!
« Reply #3 on: November 22, 2006, 04:09:28 pm »
answers in post above ;D

tell me what commands do you need and maybe i'll be able to write proper script if example above isn't good enough...
« Last Edit: November 22, 2006, 04:20:09 pm by cooz »
Dead man! Dead man walking! We got a dead man walking here! Banned man crawling more like

Offline Mefisto

  • Major(1)
  • Posts: 6
Re: Help with new command's !!
« Reply #4 on: November 22, 2006, 04:54:33 pm »
i need commands .. !help , !cheater , !rate , !admin  thats all.
When use !help and !cheater it request me.  ;) Write here ... u can or cant do that for me :(

Offline cooz

  • Soldier
  • **
  • Posts: 187
  • BANNED
Re: Help with new command's !!
« Reply #5 on: November 22, 2006, 05:25:27 pm »
write exactly what each commend should do,
request you ...how?
describe in human language what each script should write to what person?
Dead man! Dead man walking! We got a dead man walking here! Banned man crawling more like

Offline Mefisto

  • Major(1)
  • Posts: 6
Re: Help with new command's !!
« Reply #6 on: November 23, 2006, 11:29:07 am »
cooz u played maybe on Quola.de server's ?In this server are all command's. And if any1 use !help it say : Help him (nick).  If any1 use !cheater it request admin. and say : Admin is request. If any1 use !rate... I think u know what it does.
« Last Edit: November 23, 2006, 11:30:55 am by Mefisto »

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: Help with new command's !!
« Reply #7 on: November 23, 2006, 07:54:05 pm »
Those commands are provided by ARSSE, a remote admin tool.