• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

script help

TriamerA

The Mystic One.
Joined
Nov 16, 2008
Messages
1,257
Reaction score
18
Location
Poland
hello I have script which is removing 1 soul point from a player after 1 minute if he is at special 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
 
Yes I do, and do you know why my script isn't working?
Got it other way, anyway thanks!! That helped me a lot.
That's great anty skill maniacs feature
 
Last edited:
Back
Top