Author Topic: NEED: switch server script  (Read 752 times)

0 Members and 1 Guest are viewing this topic.

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
NEED: switch server script
« on: January 15, 2010, 07:13:16 pm »
Hi! I need script which when i write: !join then the script move me to another server. E.Q. from my INF server to my CTF server. I found this script: http://forums.soldat.pl/index.php?topic=22826.0 but its not working.



Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: NEED: switch server script
« Reply #1 on: January 15, 2010, 07:38:22 pm »
Outdated script core.
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: NEED: switch server script
« Reply #2 on: January 16, 2010, 04:15:46 am »
I know, but can anybody remake this script? :)



Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: NEED: switch server script
« Reply #3 on: January 16, 2010, 10:54:05 am »
I don't test it yet but it should work.

Code: (pascal) [Select]
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
// ask the person who type !join to join 127.0.0.1:23074, with a message for him
if (Text = '!join') then ForwardClient(IDtoIP(ID), GetPlayerStat(ID, 'port'), '127.0.0.1', 23074, 'Join this server instead!');
end;
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community