Hello
I want to do a script who when i say in game /give online players gives items
could you help me ?
Code:
function onSay(cid, words, param)
local items =
{
{2160, 100},
{2157, 10}
}
local a = math.random(1, 2)
for _, cid in ipairs(getOnlinePlayers()) do
doPlayerAddItem(cid, items[a])
end
end
I want to do a script who when i say in game /give online players gives items
could you help me ?
Code:
function onSay(cid, words, param)
local items =
{
{2160, 100},
{2157, 10}
}
local a = math.random(1, 2)
for _, cid in ipairs(getOnlinePlayers()) do
doPlayerAddItem(cid, items[a])
end
end