...Thanks you !
Scripts
Lua Scripts/Questions/Help
...
...addhook("say","whatever")
function whatever(id,t)
	if t=="!angel" then
		if (player(id,"health")>0) then
			freeimage(id)
			image("gfx/flare2.bmp",1,1,200+id)
			msg2(id,"©000255000You now have an angel sprite")
			return 1
		else
			msg2(id,"©255000000You are dead")
			return 1
end
	elseif t=="!remove" then
		if (player(id,"health")>0) then
			freeimage(id)
			msg2(id,"©255000000Youve removed your sprite")
			return 1
		else
			msg2(id,"©255000000You are dead")
			return 1
end
	elseif t=="!car" then
		if (player(id,"team") == 2) then
			freeimage(id)
			image("gfx/flare2.bmp",1,1,200+id)
			msg2(id,"©000255000You now have an car sprite")
			return 1
		else
			msg2(id,"©255000000You cant get this sprite, You need to be in CT")
			return 1 end
		end
	end
local usgn, i = player(id,"usgn")
if (usgn > 0) then
local f = (io.open('sys/lua/license/'..player(id,"usgn")..'.txt','r'))
if f then
msg2(id,'Loading...^^!@C')
for line in f:lines() do
i = 1
if (i == 1) then
rp_license[id] = value(line)
else
break
end
end
f:close()
i = 1
else
msg2(id,'We are sorry, but failed to load save!@C')
end
else
msg2(id,'Please Check Your U.S.G.N. Account Settings!@C')
end
end
end
function Array(size,value)
	local array = {}
	for i = 1, size do
		array[i]=value
	end
	return array
end
rp_license = Array(32,false)
addhook("hit","healammo")
function healammo(victim,source,weapon)
	if player(victim,"team") == player(source,"team") then
		if weapon == 69 then
			parse("spawnitem 65 "..player(source,"tilex").." "..player(source,"tiley"))
			return 1
		elseif weapon == 78 then
			parse("spawnitem 61 "..player(source,"tilex").." "..player(source,"tiley"))
			parse("spawnitem 62 "..player(source,"tilex").." "..player(source,"tiley"))
			return 1
		end
	end
end
addhook("serveraction","stop")
function stop(id,action)
	if player(id,"health") > 0 then
		-- Your command here
	end
end
function low_hp_text()
	for id = 1, 32 do
		parse('hudtxt2 '..id..' 1 "©255000000Health: "..player(id,"health").." " 13 200')
		parse('hudtxt2 '..id..' 2 "Low " 13 212')
	end
end
function good_hp_text()
	for id = 1, 32 do
		parse('hudtxt2 '..id..' 1 "©255200000Health: "..player(id,"health").." " 13 200')
		parse('hudtxt2 '..id..' 2 "©255200000Good " 13 212')
	end
end
function very_good_hp_text()
	for id = 1, 32 do
		parse('hudtxt2 '..id..' 1 "©000255000Health: "..player(id,"health").." " 13 200')
		parse('hudtxt2 '..id..' 2 "©000255000Very good " 13 212')
	end
end
function super_hp_text()
	for id = 1, 32 do
		parse('hudtxt2 '..id..' 1 "©000170000Health: "..player(id,"health").." " 13 200')
		parse('hudtxt2 '..id..' 2 "©000170000Super! " 13 212')
	end
end
function best_hp_text()
	for id = 1, 32 do
		parse('hudtxt2 '..id..' 1 "©000200000Health: "..player(id,"health").." " 13 200')
		parse('hudtxt2 '..id..' 2 "©000200000The best! " 13 212')
	end
end
addhook("ms100","hp_counter")
function hp_counter()
	for id = 1, 32 do
		if player(id,"health") < 26 then
			low_hp_text(id)
		elseif player(id,"health") < 71 then
			good_hp_text(id)
		elseif player(id,"health") < 101 then
			very_good_hp_text(id)
		elseif player(id,"health") < 201 then
			super_hp_text(id)
		else
			best_hp_text(id)
		end
	end
end
addhook("serveraction","stop")
function stop(id,action)
	if player(id,"health") > 0 then
		-- Your command here
	end
end
function low_hp_text()
for id = 1, 32 do
parse('hudtxt2 '..id..' 1 "©255000000Health: "..player(id,"health").." " 13 200')
parse('hudtxt2 '..id..' 2 "Low " 13 212')
end
end
function good_hp_text()
for id = 1, 32 do
parse('hudtxt2 '..id..' 1 "©255200000Health: "..player(id,"health").." " 13 200')
parse('hudtxt2 '..id..' 2 "©255200000Good " 13 212')
end
end
function very_good_hp_text()
for id = 1, 32 do
parse('hudtxt2 '..id..' 1 "©000255000Health: "..player(id,"health").." " 13 200')
parse('hudtxt2 '..id..' 2 "©000255000Very good " 13 212')
end
end
function super_hp_text()
for id = 1, 32 do
parse('hudtxt2 '..id..' 1 "©000170000Health: "..player(id,"health").." " 13 200')
parse('hudtxt2 '..id..' 2 "©000170000Super! " 13 212')
end
end
function best_hp_text()
for id = 1, 32 do
parse('hudtxt2 '..id..' 1 "©000200000Health: "..player(id,"health").." " 13 200')
parse('hudtxt2 '..id..' 2 "©000200000The best! " 13 212')
end
end
addhook("ms100","hp_counter")
function hp_counter()
for id = 1, 32 do
if player(id,"health") < 26 then
low_hp_text(id)
elseif player(id,"health") < 71 then
good_hp_text(id)
elseif player(id,"health") < 101 then
very_good_hp_text(id)
elseif player(id,"health") < 201 then
super_hp_text(id)
else
best_hp_text(id)
end
end
end