Added commands zr_zspawn_force, and zr_ztele_force.

Added options to ZAdmin that allow admins to force spawn players, or force teleport players.
This commit is contained in:
Greyscale
2009-06-25 17:03:34 -07:00
parent 1dff60542e
commit 3f08d6f72c
9 changed files with 499 additions and 93 deletions

View File

@ -861,11 +861,8 @@ public InfectMenuClientsHandle(Handle:menu_infect_clients, MenuAction:action, cl
// Client selected an option.
if (action == MenuAction_Select)
{
decl String:clientuserid[8];
GetMenuItem(menu_infect_clients, slot, clientuserid, sizeof(clientuserid));
// Get the targetted client through their userid which was set into the menu slot's info param.
new target = GetClientOfUserId(StringToInt(clientuserid));
// Get selected client index.
new target = MenuGetClientIndex(menu_infect_clients, slot);
// If target has left the server, then stop.
if (!target)
@ -899,7 +896,7 @@ public InfectMenuClientsHandle(Handle:menu_infect_clients, MenuAction:action, cl
if (slot == MenuCancel_ExitBack)
{
// Re-open admin menu.
ZRAdminMenu(client);
ZAdminMenu(client);
}
}
// Client hit "Exit" button.