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

Channel

Mooosie

mistofdeath.com
Premium User
Joined
Aug 2, 2008
Messages
742
Solutions
2
Reaction score
52
Location
Sweden
Does anyone knows if i can add storagevalue when someone joins (example) channel id 10. And then remove the storagevalue when he leaves. I really need it becouse my petsystem. ;)

Rep ++
 
There are already events made for this, so what's the problem
LUA:
function onJoinChannel(cid, channel, users)
	if channel == 10 then
		doCreatureSetStorage(cid, 1234, 1)
	end
	return true
end

function onLeaveChannel(cid, channel, users)
	if channel == 10 then
		doCreatureSetStorage(cid, 1234)
	end
	return true
end
 
Back
Top