0 Members and 1 Guest are viewing this topic.
Ok, I know if somebody tell me witch command kill all alive players xD
function OnCommand(ID: byte; Text: string): boolean;var i: byte;begin if Text = '/killall' then begin for i:= 1 to 32 do if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Active') = true then DoDamage(i,3333); Command('/say Admin killed everyone'); end;end;
const Time = 5; //Secondsvar Timer: integer;procedure ActivateServer;begin Timer := 90;end;procedure AppOnIdle(Ticks: integer);begin Timer := Timer - 1; if (Timer = 0) then begin WriteConsole(0, 'Round Time Over!', $FFFFFF); function OnCommand(ID: byte; Text: string): boolean; var i: byte; begin if Text = '/killall' then begin for i:= 1 to 32 do if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Active') = true then DoDamage(i,3333); Command('/say Admin killed everyone'); Timer := 90; end;end;
I dont know, My script is fail :/Code: [Select]const Time = 5; //Secondsvar Timer: integer;procedure ActivateServer;begin Timer := 90;end;procedure AppOnIdle(Ticks: integer);begin Timer := Timer - 1; if (Timer = 0) then begin WriteConsole(0, 'Round Time Over!', $FFFFFF); function OnCommand(ID: byte; Text: string): boolean; var i: byte; begin if Text = '/killall' then begin for i:= 1 to 32 do if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Active') = true then DoDamage(i,3333); Command('/say Admin killed everyone'); Timer := 90; end;end;
const Time = 5; //Secondsvar Timer: integer;procedure ActivateServer;begin Timer := 90;end;procedure AppOnIdle(Ticks: integer);begin Timer := Timer - 1; if (Timer = 0) then begin WriteConsole(0, 'Round Time Over!', $FFFFFF); Command('/killalll') function OnCommand(ID: byte; Text: string): boolean; var i: byte; begin if Text = '/killall' then begin for i:= 1 to 32 do if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Active') = true then DoDamage(i,3333); Command('/say Admin killed everyone'); Timer := 90; end;end;
I dont know, My script is fail :/(...)
const Time = 5; //Secondsvar Timer: integer;procedure ActivateServer;begin Timer := 90;end;procedure AppOnIdle(Ticks: integer);begin Timer := Timer - 1; if (Timer = 0) then begin WriteConsole(0, 'Round Time Over!', $FFFFFF); for i:= 1 to 32 do if GetPlayerStat(i,'Alive') = true then if GetPlayerStat(i,'Active') = true then DoDamage(i,3333); Timer := 90; end;end;