amr shalapy
Banned User
- Joined
- Aug 28, 2014
- Messages
- 122
- Reaction score
- 8
Hello everybody i was wondering how to check all local parts if you click on the one of them they will all be removed and if you missing any one of them it say you can't do this
thanks
This code that i reached but It's not working, don't know how to do it exactly may some one help please
thanks
This code that i reached but It's not working, don't know how to do it exactly may some one help please
Lua:
local parts = {2198,7890,7888,7887,7889,2197,2131,2130,2201,2138,2141}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, parts) then
doRemoveItem(cid, parts)
if not playerhasItem(parts) then
doPlayerSay(speaker, "sorry you can't do it", TALKTYPE_MONSTER_SAY, toPosition)
end
end