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

Donation.

Dekon

Zerenia.net Owner
Joined
Feb 4, 2008
Messages
235
Reaction score
3
Location
Sweden
Hello i wonder if its possible to make a Donation script.
Like /Donate Name and he/she are enable to access special hunting areas. Like a donation Door there only donation members can enter.
/Danne
 
You can make that pretty easy just by using 1 storageValue

Here are the functions:

Code:
function isDonator(cid)
local storage = x -- StorageValue which just a Donator will have
local text = "You have to be a Donator." -- Error text if the player isn't a Donator
	if getPlayerStorageValue(cid,storage) == 1 then
		return TRUE
	else
		doPlayerSendCancel(cid, text)
	end
end

function setPlayerDonator(cid)
local storage = x -- Use the same storage, like you used at the isDonator function
	if getPlayerStorageValue(cid,storage) == 1 then
		doPlayerSendCancel(cid,"You're already a Donator.")
	elseif getPlayerStorageValue(cid,storage) == -1 then
		doPlayerSendTextMessage(cid,24,"Congratulations! You are a Donator now.")
		setPlayerStorageValue(cid,storage,1)
	end
	return TRUE
end

I think Other people can make you the rest with those functions :)

kind regards, Evil Hero
 
Last edited:
Ye, as up says, make a storage value only for donators, and make etc a door that checks your storage value, and if true then you can enter.
 
:D

Im really glad that u people help me :) ty everyone
i will try make one :) if i dont get it to work ill ask u guys im not that good at lua.
 
Back
Top Bottom