psychosisneamia
~Beginner~
- Joined
- Jun 7, 2012
- Messages
- 162
- Reaction score
- 7
I need help fixing a script. I will explain it,
The script is to be when you open a channel it will have a Motd in the channel.
Any help would be appreciated!
The script is to be when you open a channel it will have a Motd in the channel.
Code:
creaturescript.xml
Code:
<event type="channeljoin" name="Globalmotd" event="script" value="channel.lua"/>
Code:
channel.lua
Code:
function onChannelJoin(cid, channel, users)
if channel == 3 then
doPlayerSendToChannel(0, cid, TALKTYPE_CHANNEL_W, 'Welcome '.. getCreatureName(cid) ..'!', 3)
end
return true
end
Code:
login.lia
Code:
registerCreatureEvent(cid, "channel")
Any help would be appreciated!