0 Members and 1 Guest are viewing this topic.
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;
(...)my suggestion is simple: dont change the tagger when someone joins in a 10 slot server youll have many joins and parts, and the newcomer might not understand a damn..
installed on my servernuclearsoldat.no-ip.org:23073