- Dołączył
- Grudzień 22, 2009
- Posty
- 110
- Liczba reakcji
- 0
no mam problem z tym tp chc? ?eby zabiera?o te? soula (100)
nie wiem nie chce mi dzia?a? tera
PHP:
local lev = 300
function onSay(cid, words, param)
local player = getPlayerByName(param)
local playerpos = getPlayerPosition(cid)
local player2pos = getPlayerPosition(player)
local 30000 mana = getPlayerMaxMana(cid)
if isPremium(cid) == TRUE then
if (getPlayerLevel(cid) >= lev or getPlayerAccess(cid) >= 0) then
if (getPlayerMana(cid) == 30000) then
if (isPlayer(player) == 1) then
if((getTilePzInfo(player2pos) == FALSE and getCreatureCondition(cid,CONDITION_INFIGHT) == FALSE)) then
doTeleportThing(cid,getPlayerPosition(player))
doPlayerSendTextMessage(cid, 19,"Teleported \""..param.."\" Succesfully. You lost "..30000 mana.." mana.")
doPlayerAddMana(cid,-30000)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not be in combat, the player can not be in pz.")
end
else
doPlayerSendCancel(cid,"This player is offline, or doesnt exist.")
end
else
doPlayerSendCancel(cid,"You Need 30k mana and 100 Soul to Teleported.")
end
else
doPlayerSendCancel(cid,"you need lvl 300 teleported to '.. lev ..' lvl")
end
end
return true
end
nie wiem nie chce mi dzia?a? tera
