Author Topic: TagMod 0.2  (Read 5017 times)

0 Members and 1 Guest are viewing this topic.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: TagMod 0.1.2
« Reply #20 on: July 22, 2008, 08:29:42 pm »
now the script is checking if the player is active. I did it this way:
Code: [Select]
procedure RandomTagger(ID:byte);
var i,MyInt:integer;
begin
    if ID=0 then begin
        MyInt:=random(1,NumPlayers+1);
        for i:=1 to MyInt do
            if not(getplayerstat(i,'active')) then
                inc(MyInt,1);
    end else begin
    //ID<>0
        MyInt:=random(1,NumPlayers);
        for i:=1 to MyInt do
            if not(getplayerstat(i,'active')) or i=ID then
                inc(MyInt,1);
    end
    SwitchTagger(MyInt);
    WriteConsole(0,getplayerstat(myint,'name')+' was randomly choosed to be the new tagger',cTag);
    DrawText(Tagger,'You''re tagging now!',330,cTag,0.15,40,240);
end;
The id is there to use random tagger when someone leaves the game. In that procedure, the leaving players is still active. 0 is when you can choose anyone

Date Posted: July 22, 2008, 11:18:26 pm
(...)
my suggestion is simple: dont change the tagger when someone joins :P in a 10 slot server youll have many joins and parts, and the newcomer might not understand a damn..
Now I remembered why I did it that way. Is to avoid people exiting the server and reentering so they will not be tagging anymore. I could do a buffer list of ips, but that's too much work for now :(
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: TagMod 0.1.2
« Reply #21 on: July 25, 2008, 10:21:44 am »
onleave game if ID = tagger /banip IP for 5 min


Date Posted: July 23, 2008, 05:32:25 pm
tell me if youre going to add that or not, so i can put it on my server.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: TagMod 0.2
« Reply #22 on: July 28, 2008, 11:36:31 am »
I will
uhhh forgot to add the time of the tagger on the screen.... sorry
v0.2.1 will have that, and an admin funtion that's not working very well will be fixed

Quote from: nuclearrambo
installed on my server
nuclearsoldat.no-ip.org:23073
« Last Edit: July 28, 2008, 04:42:42 pm by As de Espada »
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade