robertorb12
New Member
- Joined
- Jan 15, 2020
- Messages
- 65
- Reaction score
- 3
function onSay(cid, words, param, channel)
local t = string.explode(param, ",")
if t[1] ~= nil and t[2] ~= nil then
local list = {}
for i, tid in ipairs(getPlayersOnline()) do
list = tid
end
for i = 1, #list do
doPlayerAddItem(list,t[1],t[2])
doBroadcastMessage(getPlayerName(cid) .. " Acaba de dar: " .. t[2] .." ".. getItemNameById(t[1]) .. " para todos los players online!")
end
else
doPlayerPopupFYI(cid, "No parm...\nSend:\n /itemadd itemid,how_much_items\nexample:\n /itemadd 2160,10")
end
return true
end
please help make this script functional for tfs 1.3
example: /additem 2160,100
local t = string.explode(param, ",")
if t[1] ~= nil and t[2] ~= nil then
local list = {}
for i, tid in ipairs(getPlayersOnline()) do
list = tid
end
for i = 1, #list do
doPlayerAddItem(list,t[1],t[2])
doBroadcastMessage(getPlayerName(cid) .. " Acaba de dar: " .. t[2] .." ".. getItemNameById(t[1]) .. " para todos los players online!")
end
else
doPlayerPopupFYI(cid, "No parm...\nSend:\n /itemadd itemid,how_much_items\nexample:\n /itemadd 2160,10")
end
return true
end
please help make this script functional for tfs 1.3
example: /additem 2160,100