• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

click teleport + red citizen outfit

kimokimo

Kimo
Joined
Jan 25, 2011
Messages
821
Solutions
6
Reaction score
156
GitHub
karimadnan
can anyone do this? when player click on a lever he get teleported to x,y,z + red citizen outfit and want another one with blue citizen outfit
 
Fix local pos to position where player will be teleported and local outfit to red/blue citizen outfit

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local pos = {x=32967, y=32626, z=5}

	if isPlayer(cid) then
		doSetCreatureOutfit(cid, outfit)
		doTeleportThing(cid,pos)
	end
return true
end
 
Back
Top