for _, player in ipairs(getplayersonline())
if(getPlayerStorageValue(player, 2319) == 1) then
doPlayeSendMagicEffect(player, CONST_ME_POFF) --I'm not sure about this function, u should do it urselfs
end
end
globalevent (interval 3 secs).
LUA:for _, player in ipairs(getplayersonline()) if(getPlayerStorageValue(player, 2319) == 1) then doPlayeSendMagicEffect(player, CONST_ME_POFF) --I'm not sure about this function, u should do it urselfs end end
omg i was writing it in fast reply box in hope that he will make 'small details' by himselfs...Almost.
Just few changes to perform:
getplayersonline -> getPlayersOnline
doPlayeSendMagicEffect(player, CONST_ME_POFF) -> doSendMagicEffect(getPlayerPos(cid), CONST_ME_POFF)
omg i was writing it in fast reply box in hope that he will make 'small details' by himselfs...
@author
maybe small rep for wasting 45 sec of my life, huh?
[Warning - GlobalEvents::configureEvent] Duplicate registered globalevent with name: control
[Error - LuaScriptInterface::loadFile] data/globalevents/scripts/killspre.lua:2: 'do' expected near 'if'
[Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/killspre.lua)
data/globalevents/scripts/killspre.lua:2: 'do' expected near 'if'
for _, player in in pairs(getPlayersOnline()) [B]do[/B]
if getPlayerStorageValue(player, 2319) == 1 then
doPlayeSendMagicEffect(getThingPos(player), CONST_ME_POFF)
end
end