// FlagCall.cs  - original script by ?
// modified by Presto for PrestoPak compatibility

Include("presto\\match.cs");
Include("presto\\say.cs");
Include("presto\\event.cs");

function FlagCallOnClientMessage(%client, %msg) {
	if (%client != 0)
		return;
	if (Match::String(%msg, "You took the *")) {
		Say::Team(flagHave, "I've got the flag!  Secure our base!");
		return;
		}
	}
Event::Attach(eventClientMessage, FlagCallOnClientMessage);
