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

/gethouse "command param required" rep+

ohman

Member
Joined
Oct 24, 2008
Messages
289
Reaction score
5
Location
Sweden
;)Hi, when I try to buy a house I get this command "Command param required" in the defualt chat.

this is my gethouse.lua

PHP:
local config = {
	teleportAccess = 3
}

function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	local teleport = false
	local t = string.explode(param, ",")
	if(t[2]) then
		teleport = getBooleanFromString(t[2])
		param = t[1]
	end

	local house = getHouseByPlayerGUID(getPlayerGUIDByName(param))
	if(not house) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " does not own house or doesn't exists.")
		return true
	end

	local houseInfo = getHouseInfo(house)
	if(teleport and getPlayerAccess(cid) >= config.teleportAccess) then
		doTeleportThing(cid, houseInfo.entry)
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, param .. " owns house: " .. houseInfo.name .. ".")
	return true
end

I using tfs0.3.6, hope you know a selution.

Thanks in adward!
 
Try it :
*alana res - buy the house you want

*alana grav - sell the house to someone

*alana sio - kick someone who is invited

*aleta grav - list of people who can open one door/doors

*aleta sio - invite player to the house

*aleta som - take a person to be the sub-owner of the house

*alana som - leave the house you have
 
Try it :
*alana res - buy the house you want

*alana grav - sell the house to someone

*alana sio - kick someone who is invited

*aleta grav - list of people who can open one door/doors

*aleta sio - invite player to the house

*aleta som - take a person to be the sub-owner of the house

*alana som - leave the house you have



Thanks man! rep+ for you
 
Back
Top