0 Members and 1 Guest are viewing this topic.
//kill everyone when someone does /killall//run this every time someone uses a commandprocedure OnPlayerCommand(ID: Byte; Text: string): boolean;var i: Integer;begin //make sure their comand was /killall if Text = '/killall' then begin //go through each of the possible player id's for i := 1 to 32 do begin //make sure this id in question is a real one, if so kill the player if IDToName(i) <> '' then DoDamage(i,4000); end; end;end;
but i don't want it on command, i just want it in script, like if something happends u kill everyone
//Example//starts when flag is pickedprocedure OnFlagGrab(ID, TeamFlag: byte;GrabbedInBase: boolean)var i: Integer;begin //go through each of the possible player id's for i := 1 to 32 do begin if GetPlayerStat(i, 'Active') then DoDamage(i,4000); end; end;