0 Members and 3 Guests are viewing this topic.
Yes I have. But when I try running the dedicated server, it crashes on me on start without an error message. The server works fine when I take the folder out with that specific script, and I did implement the "Includes" file correctly.
Like I said before, there is no error message. When I try running the dedicated server with the script, the command screen pops up as normal, but a split second after I open it, it closes by itself. This happens alot when I have an error in the script since it won't happen when I have fixed a script..
Quote from: BurnedKirby on August 25, 2007, 04:40:32 pmLike I said before, there is no error message. When I try running the dedicated server with the script, the command screen pops up as normal, but a split second after I open it, it closes by itself. This happens alot when I have an error in the script since it won't happen when I have fixed a script..That probably means there's a compilation error. Run the server from a command prompt (Start, Run, cmd, make your way to the Soldatserver directory and then type soldatserver) and paste the output here.
Quote from: Toumaz on August 25, 2007, 04:43:38 pmQuote from: BurnedKirby on August 25, 2007, 04:40:32 pmLike I said before, there is no error message. When I try running the dedicated server with the script, the command screen pops up as normal, but a split second after I open it, it closes by itself. This happens alot when I have an error in the script since it won't happen when I have fixed a script..That probably means there's a compilation error. Run the server from a command prompt (Start, Run, cmd, make your way to the Soldatserver directory and then type soldatserver) and paste the output here.Or for an easier way just make a new .bat file in the server directory and open it with notepad and put in: soldatserver.exe and then just run thatAlso, you should be checking if they are alive not active - if I'm understanding the purpose of the script correctly...
how would you make it so it only affects the other team
for c:=1 to 32 do if (GetPlayerStat(c,'Active')=true) and (GetPlayerStat(c,'team')=WhatEverTeamnumberYouWant) then DoDamage(c,4000);
By the other team i meant if you were on blue and scored it would kill all red and if you were on red it would kill all blue not just a chosen team
procedure OnFlagScore(ID, TeamFlag: byte);var i: byte;beginfor i:=1 to 32 do if (GetPlayerStat(i,'alive')=true) and (GetPlayerStat(i,'team')=TeamFlag) then DoDamage(i,4000);end;