_team.c

./_team.c · 499 B

From the archive team.tar.gz

Download the archive   « Back to the archive contents

/* _team.c  - written by Zeus (13/01/93)
// command to allow a player to start a team.
*/

inherit "/std/cmd_m";

int help();

int cmd_team() {
	object ob;

	if(this_player()->query("leader")) {
		notify_fail("You are already in a team.\n");
		return 0;
	}
	this_player()->init_team();
	return 1;
}

int help() {
	write("SYNTAX : team\n");
	write("This is the command to start a team with you as the leader.\n"+
	      "Other people can join your team by using the 'join' command.\n");
	return 1;
}

Site Stats

Snippets: 1791
Codebases: 571