Aleada
Unknown Member
- Joined
- Mar 14, 2013
- Messages
- 231
- Reaction score
- 7
Heya everyone, I'm wondering if there is any (cid) function in LUA that targets a specific player, not everyone online... If that makes sense xd but also, I'm using TFS 1.0.
For example:
You can't include
I've found this code on the forums:
But it just sends the message to everyone :/ Not just the person who throws the item...
Thank you in advance for reading this!
Here's my script:
Thank you again!
For example:
Code:
function onAddItem(moveitem, tileitem, position)
Code:
, cid
I've found this code on the forums:
Code:
for _, cid in pairs(getOnlinePlayers()) do
But it just sends the message to everyone :/ Not just the person who throws the item...
Thank you in advance for reading this!
Here's my script:
Code:
function onAddItem(moveitem, tileitem, position)
if moveitem.itemid == 2579 then
local storage, amount = 0, 1
for _, cid in pairs(getOnlinePlayers()) do
local player = Player(cid)
player:sendTextMessage(MESSAGE_INFO_DESCR, "TEST")
end
end
end
Thank you again!