• 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!

Lua script help tfs 0.3.5

Gregor

New Member
Joined
Feb 29, 2008
Messages
770
Reaction score
3
Location
UK/POLAND
Hello! I use this script in tfs 0.3.5 and i can't find why it not working i add true and return true :( please help :p
PHP:
function onStepIn(cid, item, pos)

	if isPlayer(cid) == TRUE then
		tible = getPlayerItemCount(cid,1970)
		if tible >= TRUE then
			newpos = {x=pos.x,y=pos.y-3,z=pos.z}
			doSendMagicEffect(pos,12)
			doTeleportThing(cid,newpos)
			doSendMagicEffect(newpos,12)
	end
	return true
end
 
Code:
function onStepIn(cid, item, pos)

    if isPlayer(cid) == TRUE then
        tible = getPlayerItemCount(cid,1970)
        if tible >= TRUE then
            newpos = {x=pos.x,y=pos.y-3,z=pos.z}
            doSendMagicEffect(pos,12)
            doTeleportThing(cid,newpos)
            doSendMagicEffect(newpos,12)
	end
    end
    return true
end
 
Back
Top