~skip this
I need the table script, I just do "trial and error" and I finally I found this, but Idk if this is a table or no,. like this:
1
pistol={1,2,3,4,5,6}
then in the kill hook, If I kill an enemy with the weapon ID mentioned above, I will get the point,
I have made this but when I kill an enemy with weapon except "pistol" it will also adds the point of pistol:
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("kill","test") function test(id) pistolpercent=level[id]*5 wep=player(id,"weapontype") if wep==pistol then epistol[id]=epistol[id]+math.random(1,2) if pistol[id]>=pistolpercent then epistol[id]=epistol[id]-pistolpercent lpistol[id]=lpistol[id]+1 msg2(id,"©000255000Pistol Skill Leveled Up!@C") end end end
Im sorry If I type the wrong text, because Im using handphone lol, and I hope you understand what I mean, thanks