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

RebornN, V Problem

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
I got this action script
Code:
local config = 
{
    posWrong = {x=960, y=1075, z=7}, -- If they dont have required storage value
    posCorrect = {x=638, y=1753, z=7}, -- If they DO have correct storage value
	rebornV = 2500, -- reborn storage
	rebornN = 1 -- reborn value requirement
}
 
-- Reborn teleport script
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, config.rebornV) >= config.rebornN then -- If players "reborn" storage is greater than 1. THEN:
		doTeleportThing(cid, config.posCorrect) -- teleport them to "posCorrect" value
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome to Reborn Hunting Spawns.")
	else
		doTeleportThing(cid, config.posWrong) -- reject their access.
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you are under the requirement reborn.")
	end
	return true
end
when someone is over or less than 1 reb he can enter :/ why? whats wrong
im using tfs 0.3.6pl1
rep++
 
LUA:
local config = 
{
    posWrong = {x=960, y=1075, z=7}, -- If they dont have required storage value
    posCorrect = {x=638, y=1753, z=7}, -- If they DO have correct storage value
	level = x -- replace 'x' with required level
}
 
-- Fap script
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerLevel(cid) >= config.level then -- Checks if their level is equal to or higher than the configured level
		doTeleportThing(cid, config.posCorrect) -- teleport them to "posCorrect" value
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome to Reborn Hunting Spawns.")
	else
		doTeleportThing(cid, config.posWrong) -- reject their access.
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you are under the required level.")
	end
	return true
end
Nonlegit probably.
 
Back
Top