Nirer
New Member
First off, this is my first script so hopefully you'll be able to help me, thanks..
---------------------------
The script is supposed to do the following:
When a player gets out of a certain building, it will send the proper massage...
The positions are mentioned, when he lands/steps on one of those positions, the massage should appear, although the massage doesn't appear, what is wrong?
------------------------
This is Aware.lua:
This is what's inside the actions.xml:
---------------------------
The script is supposed to do the following:
When a player gets out of a certain building, it will send the proper massage...
The positions are mentioned, when he lands/steps on one of those positions, the massage should appear, although the massage doesn't appear, what is wrong?
------------------------
This is Aware.lua:
PHP:
function onUse(cid, item, frompos ,item2, topos)
i=0
repeat
position = {x=94+i, y=122, z=7}
if(getPlayerPosition(cid)==position) then
doPlayerSendTextMessage(cid,22,"Hi.")
end
i=i+1
until i>3
end
This is what's inside the actions.xml:
PHP:
<!-- Other -->
<action script="other/Aware.lua"/>