• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Give item to all playing chars

axewound

New Member
Joined
Aug 7, 2011
Messages
20
Reaction score
0
I'm hosting my server, and for some reason you can't do !spells even though it's in talkactions, and also a script.
But, besides That. I was wondering could someone make a script so i can say
/give Spellbook" And It gives A spell Book to all players online?
 
Dont give me rep. Its not my script the author is: Darkhaos, i found it 4 months ago and share it with you ;p

LUA:
function onSay(cid, words, param, channel)
	local t = string.explode(param, ",")
	if t[1] ~= nil and t[2] ~= nil then
		for _, tid in ipairs(getPlayersOnline()) do
			doPlayerAddItem(tid,t[1],t[2])
		end
		return doBroadcastMessage(getPlayerName(cid) .. " has given reward: " .. t[2] .." ".. getItemNameById(t[1]) .. " for all players!")
	else
		return doPlayerPopupFYI(cid, "No param...\nSend:\n /itemadd itemid,how_much_items\nexample:\n /itemadd 2160,10")
	end
	return true
end
 
Back
Top