1.1 --- a/plugins/basefuncommands.sp Mon Dec 10 23:32:32 2007 +0000
1.2 +++ b/plugins/basefuncommands.sp Wed Dec 12 02:16:25 2007 +0000
1.3 @@ -54,6 +54,7 @@
1.4 #include "basefuncommands/slay.sp"
1.5 #include "basefuncommands/burn.sp"
1.6 #include "basefuncommands/slap.sp"
1.7 +#include "basefuncommands/beacon.sp"
1.8
1.9 public OnPluginStart()
1.10 {
1.11 @@ -63,8 +64,11 @@
1.12 RegAdminCmd("sm_burn", Command_Burn, ADMFLAG_SLAY, "sm_burn <#userid|name> [time]");
1.13 RegAdminCmd("sm_slap", Command_Slap, ADMFLAG_SLAY, "sm_slap <#userid|name> [damage]");
1.14 RegAdminCmd("sm_slay", Command_Slay, ADMFLAG_SLAY, "sm_slay <#userid|name>");
1.15 + RegAdminCmd("sm_beacon", Command_Beacon, ADMFLAG_SLAY, "sm_beacon <#userid|name>");
1.16 RegAdminCmd("sm_play", Command_Play, ADMFLAG_GENERIC, "sm_play <#userid|name> <filename>");
1.17
1.18 + SetupBeacon();
1.19 +
1.20 /* Account for late loading */
1.21 new Handle:topmenu;
1.22 if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != INVALID_HANDLE))
1.23 @@ -73,6 +77,11 @@
1.24 }
1.25 }
1.26
1.27 +public OnMapEnd()
1.28 +{
1.29 + KillAllBeacons();
1.30 +}
1.31 +
1.32 public OnAdminMenuReady(Handle:topmenu)
1.33 {
1.34 /* Block us from being called twice */
1.35 @@ -112,6 +121,14 @@
1.36 player_commands,
1.37 "sm_slap",
1.38 ADMFLAG_SLAY);
1.39 +
1.40 + AddToTopMenu(hTopMenu,
1.41 + "sm_beacon",
1.42 + TopMenuObject_Item,
1.43 + AdminMenu_Beacon,
1.44 + player_commands,
1.45 + "sm_beacon",
1.46 + ADMFLAG_SLAY);
1.47 }
1.48 }
1.49