Hi,
I want my script to check player position and give AAA message if player is on XYZ and BBB message if player isn't on XYZ.
It will be "function onUse".
I tried something like:
but it doesn't work :/
I lost 3hours on that script and tried many options but never works good...
I hope someone will help me :{
TFS for 8.11
Sorry for my bad english :/
I want my script to check player position and give AAA message if player is on XYZ and BBB message if player isn't on XYZ.
It will be "function onUse".
I tried something like:
PHP:
begin of script...
local abc = {x=100, y=101, z=7}
if isPlayer(cid) then
if getCreaturePosition(cid) == abc then
...rest of script
I lost 3hours on that script and tried many options but never works good...
I hope someone will help me :{
TFS for 8.11
Sorry for my bad english :/