Official Soldat Forums
Server Talk => Scripting Releases => Topic started by: BRADEN on June 07, 2008, 05:28:14 pm
-
Script Name: Zombie Match Switch (ZMS) v1.0b
Script Description: This script gives the admin the ability to switch a zombie match on/off. (Bots included in download)
Original Author(s): BRADEN
Core Version: 2.6.3
Code:
function OnCommand(ID: Byte; Text: string): boolean;
begin
//Zombie Match Switch (ZMS) BETA by Braden
if Text = '/zombie on' then begin
Command('/addbot Undead Scientist 1');
Command('/addbot Undead Scientist 2');
Command('/addbot Undead Scientist 3');
Command('/addbot Undead Scientist 4');
Command('/addbot Undead Scientist 5');
Command('/addbot Undead Scientist 6');
Command('/addbot Undead Scientist 7');
Command('/addbot Undead Scientist 8');
Command('/addbot Undead Scientist 9');
Command('/addbot Undead Scientist 10');
Command('/addbot Undead Scientist 11');
Command('/addbot Undead Scientist 12');
Command('/addbot Undead Scientist 13');
Command('/addbot Undead Scientist 14');
Command('/addbot Undead Scientist 15');
Command('/addbot Undead Scientist 16');
Command('/addbot Undead Scientist 17');
Command('/addbot Undead Scientist 18');
Command('/addbot Undead Scientist 19');
Command('/addbot Undead Scientist 20');
end;
if Text = '/zombie off' then begin
Command('/kick Undead Scientist');
end; //NOTE: This function will be called when an admin types a / command.
Result := false; // Return true if you want to ignore the command typed.
end;
-
so like........can u give a better desciption plox
-
Nothing, that's all there is to it.
-
Hmm, this script is a 5-Minute-Hello-World. Just repeat /zombie on and your server is flooded by zombies. You can add the same bot (file) multiple times, so you don't need more than one botfile. Whatever :P
-
Well, it's not meant to be a ground breaking script.