From 2c4329e2b6e19182a441f79a5c3010011f8ae767 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 27 Nov 2016 22:02:47 -0500 Subject: Vairous updates --- gamemode/shared/sh_npcmap.lua | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 gamemode/shared/sh_npcmap.lua (limited to 'gamemode/shared/sh_npcmap.lua') diff --git a/gamemode/shared/sh_npcmap.lua b/gamemode/shared/sh_npcmap.lua deleted file mode 100644 index 5c6d93c..0000000 --- a/gamemode/shared/sh_npcmap.lua +++ /dev/null @@ -1,27 +0,0 @@ - -local pmeta = FindMetaTable("Player") - -if SERVER then - util.AddNetworkString("addmapicon") -end - -function pmeta:AddMapIcon(icon,position) - print("adding map icon") - net.Start("addmapicon") - net.WriteString(icon) - net.WriteVector(position) - net.Send(self) -end - -if CLIENT then - net.Receive("addmapicon",function() - print("got recieve for map icon") - LocalPlayer().MapIcons = LocalPlayer().MapIcons or {} - local matstr = net.ReadString() - local matpos = net.ReadVector() - table.insert(LocalPlayer().MapIcons,{ - ["material"] = Material(matstr), - ["pos"] = matpos, - }) - end) -end -- cgit v1.2.3-70-g09d2