• 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 Damage from GM chair?

flaxe

the one and only
Joined
Jun 12, 2009
Messages
336
Reaction score
2
Location
Sweden
Hello! I wrote wrong in the topic, it should be "teleport away" instead of "damage". I would like to have a script to a chair that only GMs and GODs can stand on, all other (normal players), will just be "teleported" away if they walk on the chair, but not the GM or GOD. I've searched alot in the forum but havn't found anything. Thanks! Hope you understand what I mean!
 
Last edited:
thanks, but where to put it and how to make it work? I got 2 chairs ^^, do I have to put any uid or something on them?
 
Code:
function onStepIn(cid)

if getPlayerAccess(cid) < 4 then
return 0
else
return 1
end
end

LUA:
function onStepIn(cid)
only cid plx?

try

LUA:
function onStepIn(cid, item, position, fromPosition)
local access = 4
		if isPlayer(cid) == TRUE and getPlayerAccess(cid) >= access then 
			return TRUE
		else
		 	doMoveCreature(cid, fromPosition)
	end
	return TRUE
end
 
Last edited:
Ok, but where to put it? in movements? and how can I make it to work on the chairs? doesn't I have to put a uid or something?
thanks for help.
 
Back
Top