Seumion
★ Spell Maker & Mapper ★
- Joined
- Feb 24, 2015
- Messages
- 172
- Reaction score
- 2
where can i put that on my script
i need put that distance effect on it
PHP:
function onSay(cid, words, param)
local player = getPlayerByNameWildcard(param)
if not isPlayer(player) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'blahblabhlah.')
doSendDistanceShoot(pos, getThingPos(cid),30)
return true
end
local b = not getCreatureNoMove(player)
doCreatureSetNoMove(player, b)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_BLUE, b and 'blahblabhlah.' or 'blahblabhlah.')
doSendAnimatedText(getThingPos(player), b and 'Frozen' or 'Can Move', b and 64 or 168)
doSendMagicEffect(getThingPos(player), b and CONST_ME_GIANTICE or CONST_ME_HOLYAREA)
return true
end
i need put that distance effect on it
PHP:
doSendDistanceShoot({x = position.x + math.random(-1 ,1), y = position.y + math.random(-1 ,1), z = position.z}, position, 4)