PK 6j/scripts/PK 6j/scripts/client/PK 6j/scripts/client/autoexec/PK 6j/a/bb-scripts/client/autoexec/AltSpeedFPSPingHud.csnew GuiControlProfile ("AltHudLabelProfile") { fontType = "Arial"; fontSize = 14; fontColor = "255 255 128"; justify = "left"; }; new GuiControlProfile ("SpeedHudLabelProfile") { fontType = "Arial"; fontSize = 14; fontColor = "255 128 128"; justify = "left"; }; new GuiControlProfile ("FPSHudLabelProfile") { fontType = "Arial"; fontSize = 14; fontColor = "4 235 105"; justify = "left"; }; new GuiControlProfile ("PingHudLabelProfile") { fontType = "Arial"; fontSize = 14; fontColor = "44 172 181"; justify = "left"; }; new GuiControlProfile ("AltSpeedFPSPingHudTextProfile") { fontType = "Arial"; fontSize = 14; fontColor = "255 255 255"; justify = "right"; }; new GuiControl(AltSpeedFPSPingHud) { profile = "GuiDefaultProfile"; horizSizing = "right"; vertSizing = "top"; position = "5 415"; extent = "200 16"; minExtent = "8 8"; visible = "1"; new GuiTextCtrl() { profile = "AltHudLabelProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "0 0"; extent = "20 16 "; visible = "1"; text = "Alt:"; }; new GuiTextCtrl(AltHudtext) { profile = "AltSpeedFPSPingHudTextProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "20 0"; extent = "20 16 "; visible = "1"; }; new GuiTextCtrl() { profile = "SpeedHudLabelProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "45 0"; extent = "20 16 "; visible = "1"; text = "Spd:"; }; new GuiTextCtrl(SpeedHudtext) { profile = "AltSpeedFPSPingHudTextProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "70 0"; extent = "20 16 "; visible = "1"; }; new GuiTextCtrl() { profile = "FPSHudLabelProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "95 0"; extent = "20 16 "; visible = "1"; text = "FPS:"; }; new GuiTextCtrl(FPSHudtext) { profile = "AltSpeedFPSPingHudTextProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "120 0"; extent = "20 16 "; visible = "1"; }; new GuiTextCtrl() { profile = "PingHudLabelProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "145 0"; extent = "25 16 "; visible = "1"; text = "Ping:"; }; new GuiTextCtrl(PingHudtext) { profile = "AltSpeedFPSPingHudTextProfile"; horizSizing = "right"; vertSizing = "bottom"; position = "170 0"; extent = "25 16 "; visible = "1"; }; }; playGui.add(AltSpeedFPSPingHud); if(isObject(HM)) hudmover::addhud("AltSpeedFPSPingHud","AltSpeedFPSPingHud"); addMessageCallback('MsgClientJoin', handleGetPlayerClientID); addMessageCallback('MsgAdminUpdate', handleGetPlayerPing); function handleGetPlayerClientID(%msgType, %msgString, %clientName, %clientId, %guid, %score, %isAI, %isAdmin, %isSuperAdmin ) { if(strstr(%msgString, "Welcome to Legends" !=-1)) $myID = %clientId; } function handleGetPlayerPing(%msgType, %msgString, %clientId, %clientName, %guid, %ping, %pl, %team ) { if(%clientId == $myID) PingHudtext.setValue(mFloor(%ping)); } function AltSpeedFPSHudUpdate() { if ($AltSpeedFPSHudSchedule != 0) cancel($AltSpeedFPSHudSchedule); AltHudtext.setValue(getControlObjectAltitude()); SpeedHudtext.setValue(mFloor(getControlObjectSpeed() * 3.6)); FPSHudtext.setValue(mFloor($fps::real)); $AltSpeedFPSHudSchedule = schedule(500, 0, AltSpeedFPSHudUpdate); } function PingHudUpdate() { if ($PingHudSchedule != 0) cancel($PingHudSchedule); CommandToServer('UpdatePlayerListData'); $PingHudSchedule = schedule(4000, 0, PingHudUpdate); } AltSpeedFPSHudUpdate(); PingHudUpdate(); PK 6j/scripts/PK 6j/&scripts/client/PK 6j/Sscripts/client/autoexec/PK 6j/a/bb- scripts/client/autoexec/AltSpeedFPSPingHud.csPK6