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

need that script fast please

oOIOo

HetZera.Net
Joined
Mar 30, 2010
Messages
221
Reaction score
1
i need script:

i made teleport and wanna script that when the vip player go on it it teleport him to vip city and if free player go on it it back him and say only vip players who can use that teleport
 
Code:
function onStepIn(cid, item, position, fromPosition)
	return isPlayer(cid) and getPlayerStorageValue(cid, vip_Storage) == 1 and doTeleportThing(cid, {x = x, y = y, z = z}) or doTeleportThing(cid, fromPosition, false) and doCreatureSay(cid, "Youre not Vip.", 19)
end
 
LUA:
function onStepIn(cid, item, pos)

newPos = {x=100, y=100, z=7}

if getPlayerStorageValue(cid, VIPSTORAGE) < 0 then
  doCreatureSay(cid, "Only VIP players can enter here", TALKTYPE_ORANGE_1)
  return TRUE
end
  
doTeleportThing(cid,newPos)
doSendMagicEffect(newPos,10)
doCreatureSay(cid, "Welcome VIP Player!", TALKTYPE_ORANGE_1)
return TRUE


end
 
how to make that work

Where i put it in actions? with an id and make that id in teleport and the postion in that script the postion that the teleport will take the player to?
 
how then ?

i make the pos =the pos of the teleport as if any player go on that pos it back him only the player who vip can pass?

is it need id too and put the id in teleport?
 
Back
Top