xavierek
New Member
- Joined
- Apr 11, 2009
- Messages
- 209
- Reaction score
- 0
hello i found some like it only dont know how make it to..
i whant to player get random item 1,2,3,4,5,6 or 7 when kill monster some like random function some one can help me with it ?
sorry for english
i whant to player get random item 1,2,3,4,5,6 or 7 when kill monster some like random function some one can help me with it ?
sorry for english
PHP:
function onKill(cid, target)
if isPlayer(cid) == 1 and isCreature(target) == 1 then
if getCreatureName(target) == "Demon Boss" then
setPlayerStorageValue(cid,21902,1)
end
end
return TRUE
end