Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
local waittime = 30 --Default (30 seconds)
local storage = 50
function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end
local pid = getPlayerByNameWildcard(param)
if(pid == 0 or (isPlayerGhost(pid) == TRUE and getPlayerAccess(pid) > getPlayerAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
return TRUE
end
if getPlayerLevel(pid) < 50 then
if exhaustion.get(cid, storage) == FALSE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getCreatureName(pid) .. " has been sent to temple.")
doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)))
exhaustion.set(cid, storage, waittime)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "The player is higer then lvl 50.")
end
return TRUE
end
----By Arkam Shadow----
local level = getPlayerLevel(cid)
local temple = {x= 1000, y= 1000, z= 7} ----Wspolrzedne Templi
if level <= 50 then
doTeleportThing(cid, temple)
doPlayerSendCancel(cid, "Potrzebujesz 50 Poziomu")
end
<talkaction words="!tp" event="script" value="nazwa pliku.lua"/>