• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Addon] Killing Player Recieve Addon Item.

Dion078

New Member
Joined
Aug 27, 2010
Messages
32
Reaction score
0
Hello,


I'm looking for a script that gives you a random addon item whenever you frag a player. I've seen this script in War-Ots to obtain addons, if anyone likes to share it and help me and others that would be very gratefull!


kind regards,
Dion078
 
Lua:
local items = {1021, 4023, 3029, 4032}    -- Items ID
function onKill(cid, target, lastHit)
   if isPlayer(target) and lastHit == TRUE then
		doPlayerAddItem(cid, items[math.random(1, #items)], 1)
	end
return true
end
--By Erexo

Not tested :) (change items ID :D)
Thx for help Renee
 
Back
Top