Author Topic: Server scripting help  (Read 878 times)

0 Members and 1 Guest are viewing this topic.

Offline Rulez

  • Major(1)
  • Posts: 2
Server scripting help
« on: January 28, 2014, 08:52:56 am »
Hello, i just set up my server and i found some bugs here or maybe i just don't know how figure it out.


I put on this stats system:

http://forums.soldat.pl/index.php?topic=35944.msg437083#msg437083

and after few kills and death command !stats show me only one death, no frags, no points etc. I read there about mysql, got one but simply dunno why should i use it, if somebody could help me with that i would be happy.

another thing, i dig up all script forum and cant find quick join/spec script (!j, !s). if somebody could link it or up it i would thank

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1396
  • High above
    • Zabijaka.pl
Re: Server scripting help
« Reply #1 on: January 28, 2014, 11:31:49 am »
Copied from a bigger script so might not work, not sure, u will have to test it out.

Code: [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
 if Text = '!join' then Command('/setteam0 '+inttostr(ID));
 if Text = '!5' then Command('/setteam5 '+inttostr(ID));
 if Text = '!spec' then Command('/setteam5 '+inttostr(ID));
end;

Im chill like that

Offline Rulez

  • Major(1)
  • Posts: 2
Re: Server scripting help
« Reply #2 on: January 28, 2014, 12:51:48 pm »
works well, ty