Marcinek123
Badboy
WAYPOINTS 0.3beta2 (tfs)
in talkactions.xml
waypoint.lua
Oh I forgotten... if you wanna tp you must say '!wp p2'
On red is my 'x,y,z' change this under your map ;]
in talkactions.xml
Code:
<talkaction words="!wp" script="Waypoints.lua"/>
waypoint.lua
Code:
-- made by Chojrak
-- edit by Czaruś (Marcinek123)under TFSbeta2
function onSay(cid, words, param)
[COLOR="Red"]local name1place = {x = 205, y = 373, z = 7}
local name2place = {x = 207, y = 375, z = 7}
local name3place = {x = 209, y = 379, z = 7}[/COLOR]
local tmp = getPlayerPosition(cid)
if (tmp.x == 207 and tmp.y == 373 and tmp.z == 7) then --/position when player must stand in order to use the portal...
if (param == 'nemeInWorldBehind !wp ') then
doTeleportThing(cid, name2place, FALSE)
doSendAnimatedText(getPlayerPosition(cid),'Bzzzzz', TEXTCOLOR_YELLOW)
doSendMagicEffect(tmp, 31)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == ''nemeInWorldBehind !wp ') then
doTeleportThing(cid, name3place , FALSE)
doSendAnimatedText(getPlayerPosition(cid),'Bzzzzz', TEXTCOLOR_YELLOW)
doSendMagicEffect(tmp, 31)
doSendMagicEffect(getPlayerPosition(cid), 10)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, Not possible.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, Not possible.")
end
return TRUE
end
Oh I forgotten... if you wanna tp you must say '!wp p2'
On red is my 'x,y,z' change this under your map ;]
Last edited: