Fix -misc cache not updating.

This commit is contained in:
shavitush 2017-06-03 22:15:44 +03:00
parent 7c56de9ebb
commit 204fb45712
2 changed files with 11 additions and 1 deletions

View File

@ -333,6 +333,11 @@ public void Shavit_OnChatConfigLoaded()
}
}
public void Shavit_OnStyleChanged(int client, BhopStyle oldstyle, BhopStyle newstyle)
{
gBS_Style[client] = newstyle;
}
public void OnConVarChanged(ConVar convar, const char[] oldValue, const char[] newValue)
{
gI_GodMode = gCV_GodMode.IntValue;

View File

@ -1192,7 +1192,12 @@ public int CreateZoneConfirm_Handler(Menu menu, MenuAction action, int param1, i
else if(StrEqual(info, "tpzone"))
{
GetClientAbsOrigin(param1, gV_Teleport[param1]);
float vTeleport[3];
GetClientAbsOrigin(param1, vTeleport);
// if()
gV_Teleport[param1] = vTeleport;
//GetClientAbsOrigin(param1, gV_Teleport[param1]);
Shavit_PrintToChat(param1, "%T", "ZoneTeleportUpdated", param1);
CreateEditMenu(param1);