Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hey !
I made a little script to show your Position in the HUD. (You'll need that If you make Map-Edits)
To update your current position just enter "!update".
Screenshit, I mean Screenshot:
Source:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using InfinityScript; namespace Viewpos { public class ViewPosMSG : BaseScript { private HudElem pos1; public ViewPosMSG() : base() { PlayerConnected += showdaposition; PlayerDisconnected += dewrite; } void showdaposition(Entity obj) { pos1 = HudElem.CreateServerFontString("hudbig", 0.6f); pos1.SetPoint("BOTTOMCENTER", "BOTTOMCENTER", 0, 1); pos1.HideWhenInMenu = true; pos1.SetText("^0Your position: " + "^9X: " + obj.Origin.X + " ^5Y: " + obj.Origin.Y + " ^6Z: " + obj.Origin.Z); } public override void OnSay(Entity player, string name, string message) { if (message.StartsWith("!update")) { pos1.HideWhenInMenu = false; //You don't need that, but it's good to make mapedits pos1.SetText("^9X: " + player.Origin.X + " ^5Y: " + player.Origin.Y + " ^6Z: " + player.Origin.Z); } } void dewrite(Entity obj) { pos1.SetText(""); } } }Credits:
[*] MegM@k (How to write in HUD) (http://fourdeltaone.net/viewtopic.php?f=39&t=15845&p=122567)
validati0n (all other)
Download link: [attachment=0]Show Position - validati0n.rar[/attachment]