Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: j0ltflame on February 16, 2007, 08:22:50 am

Title: New script.
Post by: j0ltflame on February 16, 2007, 08:22:50 am
Ok, my old topic was locked so i will explain as good i can.

When you say: Command, noob ''Noob kill'' or something will not help me i wan't better waydirections about where i should be going.

Now i have been thought to know how you do a script to a own server. If you don't wan't to explain it just give me a link about scriptinghelps and stuff.
I would know about how to make many script but for now, i just need this:

I say who name is GuyGay, says 'noob' in my server for ex. and then i want that Server auto kills him or says: GuyGay is a Noob. Too say go in in Networkpas.exe will not help be, so explain good or give me a link about scripting.

//
Title: Re: New script.
Post by: EnEsCe on February 16, 2007, 09:06:51 am
... Open NetworkCore.pas and replace:
Code: [Select]
procedure OnPlayerSpeak(Name, Text: string);
begin
end;
with:
Code: [Select]
procedure OnPlayerSpeak(Name, Text: string);
begin
  if uppercase(Text) = 'NOOB' then begin
    Command('/kill '+NameToID(Name));
    Command('/say '+Name+' is a noob.');
  end;
end;
Title: Re: New script.
Post by: j0ltflame on February 16, 2007, 11:01:36 am
Thank you, now explain if i don't anyone to name Major in my server, tehn how?

And wheres the networkcore map in ARSSE?

Do i need arsse to make scripts? I mean, whats the different if u are admin with pass and if ur admin with pass and arsse?
Title: Re: New script.
Post by: EnEsCe on February 16, 2007, 08:31:35 pm
This section is for Soldat Server scripts, not ARSSE scripts. NetworkCore.pas is in the /scripts/ folder in wherever you put the soldatserver folder.
Title: Re: New script.
Post by: j0ltflame on February 17, 2007, 05:08:51 am
What can u do with arsses script then?

And i dont have a scriptfolder :(