• 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 action id to open door

tim26

Member
Joined
Aug 12, 2008
Messages
618
Reaction score
11
Location
Poland
whos say me i can add in script storage value and when player have this storage then he can open red door this to postman mission but whos can shop example how storage add ands then how action id to door? please
 
if you want use ex. 666 as your storage value, then you just need to put action id to red doors to 666. Player will be able to enter when this storage will be != -1. (ex. setPlayerStorageValue(cid, 666, 1)
 
Code:
function onUse(cid, item, frompos, item2, topos)
local value = xxxx -- storagevalue which the player has to have.
	if getPlayerStorageValue(cid,value) == TRUE then
		-- happens when he has the value
	else
		-- happens if he doesn't have the value
	end
	return TRUE
end
 
Back
Top