Just one Problem:
1
parse('hudtxt2 '..id..' 4 "©000255000Weapon: '..item(player(id,"weapontype"),"name")..' " 10 125')
But how to fix it?
Scripts
Lua Scripts/Questions/Helpparse('hudtxt2 '..id..' 4 "©000255000Weapon: '..item(player(id,"weapontype"),"name")..' " 10 125')
-----------------------
----ADMIN SAY-----
-----------------------
addhook("say","adminsay")
function adminsay(id)
for i,_usgn in ipairs(RANK.ADMIN) do
if player(id,"usgn") == _usgn then
msg(©000255000 "..player(player, "name").." (Admin): "..text)
return 1
end
end
end
I know lol......addhook("say","adminsay")
msg(©000255000 "..player(player, "name").." (Admin): "..text)
return 1
end
end
end
addhook("say","adminsay")
function adminsay(id,txt)
	if (player(id,"usgn")==xxx) then <- Put ur USGN instand of xxx
	msg("©255255255"..player(id,"name").." (Admin):"..txt)
	End
End
,it works.addhook("say","adminsay")
function adminsay(id,txt)
msg("©255000000"..player(id,"name").." (Admin): "..txt)
return 1
end
if (player(id,"usgn")==xxx) then
if (player(id,"usgn")==xxx) then
addhook("say","adminsay")
function adminsay(id,txt)
msg("©255000000"..player(id,"name").." (Admin): "..txt)
return 1
end
addhook("say","adminsay")
function adminsay(id,txt)
for i,_usgn in ipairs(RANK.ADMIN) do
if player(id,"usgn") == _usgn then
msg("©255000000"..player(id,"name").." (Admin): "..txt)
return 1
end
parse('hudtxt2 '..id..' 4 "©000255000Weapon: '..item(player(id,"weapontype"),"name")..' " 10 125')
parse([[hudtxt2 ]]..id..[[ 4 '©000255000Weapon: ]]..item(player(id,"weapontype"),"name")..[[' 10 125]])
-----------------------
-- COMPLETE HUD --
-----------------------
addhook("always","HUD")
function HUD()
	rot = {}
	for id = 1, game("sv_maxplayers"), 1 do
		if player(id,"exists") then
			rot[id] = player(id,"rot")
			parse('hudtxt2 '..id..' 3 "©000255000Coordinates X: '..player(id,"tilex")..' Y: '..player(id,"tiley")..' " 10 100')
			parse('hudtxt2 '..id..' 4 "©000255000Health: '..player(id,"health")..' Armor: '..player(id,"armor")..' " 10 113')
			parse('hudtxt2 '..id..' 5 "©000255000Weapon: '..item(player(id,"weapontype"),"name")..' " 10 126')
			level=sample.ut.level[id]
			parse('hudtxt2 '..id..' 6 "©000255000Level: '..level..' " 10 139')
		end
	end
end
parse([[hudtxt2 ]]..id..[[ 4 '©000255000Weapon: ]]..itemtype(player(id,"weapontype"),"name")..[[' 10 125]])
parse([[hudtxt2 ]]..id..[[ 4 "©000255000Weapon: ]]..itemtype(player(id,"weapontype"),"name")..[[" 10 125]])

local KpD = tostring(K/D) --Kills/Deaths if(string.len(KpD)>4) then 	KpD = string.sub(KpD,1,4) end