addhook("kill… then after when i kill someone in game then this activates parse("equip….
Forum
Scripts
Lua kill command.
Lua kill command.
7 replies
1

addhook("kill… then after when i kill someone in game then this activates parse("equip….
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook('kill', 'AA_kill')
function AA_kill(id)
	timer(3000, 'AA_function', id)
end
AA_function(id)
	parse('equip '..id..' 32')
end
addhook("kill .. id .. killer")
something like that
1
2
3
4
2
3
4
addhook("kill","_kill")
function _kill(killer,victim)
	parse("equip "..killer.." 1")
end
To late but either one works.
1
2
3
4
2
3
4
addhook("kill","_kill")
function _kill(killer,victim)
parse("hudtxt2 "..id.." 1 "©000255000Your Usgn Id is: "..killer(id,"usgn").." " 5 280")
end
function _kill(killer,victim)
parse("hudtxt2 "..id.." 1 "©000255000Your Usgn Id is: "..killer(id,"usgn").." " 5 280")
end
Black Wolf has writtenWhat wrong with this…
1
2
3
4
2
3
4
addhook("kill","_kill")
function _kill(killer,victim)
parse("hudtxt2 "..id.." 1 "©000255000Your Usgn Id is: "..killer(id,"usgn").." " 5 280")
end
it should
1
LUA ERROR: attempt to blabla 'id'(a nil value)
1
2
3
4
2
3
4
addhook("kill","_kill")
function _kill(killer,victim)
parse("hudtxt2 "..killer.." 1 \"©000255000Your Usgn Id is: "..player(killer,"usgn").."\" 5 280")
end
edited 1×, last 06.08.12 12:29:05 pm
1
LUA ERROR: sys/lua/server.lua:3: unexpected symbol near '\'
I tested again and removed "/"
the it says
1
LUA ERROR: sys/lua/server.lua:3: ')' expected near '¬'
Black Wolf: 1
parse('hudtxt2 '..killer..' 1 "©000255000Your U.S.G.N. ID is: '..player(killer,"usgn")..'" 5 280')
1

Offline