function onSay(cid, words, param)
if(param=="") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Param Syntax Error")
return false;
end;
param = string.explode(param,",");
if(#param < 2) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This Talkaction requies 2 params.")
return false;
end;
param = string.explode(param,",");
local fpos, tpos, bol = string.explode(param[1], ";"), string.explode(param[2], ";"), false;
local player;
for check=1, 3 do
fpos[check] = tonumber(fpos[check]);
if(not fpos[check]) then
bol=true;
break;
end
end
if (not bol) then
for check=1, 3 do
tpos[check] = tonumber(tpos[check]);
if(not fpos[check]) then
bol=true;
break;
end
end
end
if (bol) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Wrong Coordinates.")
return false;
end
for ax=tonumber(fpos[1]),tonumber(tpos[1]) do
for ay=tonumber(fpos[2]),tonumber(tpos[2]) do
for az=tonumber(fpos[3]),tonumber(tpos[3]) do
player = getTopCreature({x=ax, y=ay, z=az}).uid
if(isPlayer(player)) then
doTeleportThing(player, getPlayerMasterPos(player));
end
end
end
end
return false;
end