I have a problem with this lua, when they kill me and I use the spawnplayer function, the things the player has disappears...
the weapons that the player who was murdered have disappeared and they do not drop.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
UTSFX=true addhook("kill","_killer") function _killer(killer,victim,x,y) if UTSFX==true then local clr 		if player(killer,"team") == 0 then -- t 			clr = "©255220000" -- t 		elseif player(killer,"team") == 1 then -- t 			clr = "©255025000" -- t 		elseif player(killer,"team") == 2 then -- ct 			clr = "©050150255" -- ct end	 			parse("killplayer "..killer) 			msg(clr..player(killer,"name").."©255220000 YOU CAN'T KILL ANYONE NOW! TRY IN NIGHT!") local x,y = player(victim,'x'),player(victim,'y') parse('spawnplayer '..victim..' '..x..' '..y) end end
edited 1×, last 23.10.18 10:03:10 am