fixed bug am48866

This commit is contained in:
David Anderson 2006-12-23 18:59:30 +00:00
parent 7aa4cf70be
commit 49e70063fa

View File

@ -679,7 +679,9 @@ public blockcommand(id)
public cmdMenu(id, level, cid)
{
if (cmd_access(id, level, cid, 1))
{
displayMenu(id, g_Position[id] = 0)
}
return PLUGIN_HANDLED
}
@ -689,9 +691,18 @@ checkRest(id, menu, key)
new team = get_user_team(id)
if (team != 1 && team != 2)
{
return PLUGIN_HANDLED
}
if (g_blockPos[(menu * 8 + key) + (get_user_team(id) - 1) * 56])
new pos = (menu * 8 + key) + (get_user_team(id) - 1) * 56
if (pos < 0 || pos >= 112)
{
return PLUGIN_CONTINUE
}
if (g_blockPos[pos])
{
engclient_cmd(id, "menuselect", "10")
client_print(id, print_center, "%s", g_Restricted)