vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i try create command with two params, but it not work without any errors
Code:
function onSay(cid, item, frompos, item2, topos, words, channel, param)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
if param == "on" then
item = doCreateItem(1387, 1, {x = 1000, y = 1000, z = 7})
doItemSetAttribute(item, "aid", 10207)
elseif param == "off" then
pos_tp = {x = 1000, y = 1000, z = 7}
doRemoveItem(getThingfromPos(pos_tp).uid, 1)
end
end