Admirdee has written
I need some help here,
now I'm making lua script named Rank Mod, I already half done with it. but, the problem is, whenever he die. he lost his speed and weapon and respawn with nothing. how to make it if die and it will stay?
now I'm making lua script named Rank Mod, I already half done with it. but, the problem is, whenever he die. he lost his speed and weapon and respawn with nothing. how to make it if die and it will stay?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local player_states = {} function hit_hook(p, s, w, hp, ap) 	if player(p, "health") <= 0 then 		if not player_states[p] then 			player_states[p] = {} 		end 		 		player_states[p].wpn = playerweapons(id) 		player_states[p].speed = player(p, "speedmod") 		player_states[p].maxhealth = player(p, "maxhealth") 	end end function spawn_hook(p) 	if not player_states[p] then return end 	for i, type in ipairs(player_states[p].wpn) do equip(p, type) end 	parse("speedmod "..p.." "..player_states[p].speed) 	parse("setmaxhealth "..p.." "..player_states[p].maxhealth) 	parse("sethealth "..p.. " 100") 	player_states[p] = nil end