hello I have script which is removing 1 soul point from a player after 1 minute if he is at special sqm.
But after player enter on that sqm it only happens once, and I want it to remove soul points untill player is at that sqm
Code:
function onStepIn(cid, item, pos)
if item.actionid == 17199 then
if getPlayerSoul(cid) > 5 then
addEvent(doPlayerAddSoul, 60 * 1000, cid, -1)
else
doPlayerSendTextMessage(cid,22, "You don't have enought soul points.")
doTeleportThing(cid, {x = 1071, y = 1084, z = 7})
end
end
return TRUE
end
But after player enter on that sqm it only happens once, and I want it to remove soul points untill player is at that sqm