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

Doubt: !changesex [SOLVED]

Xapuur

New Member
Joined
Sep 15, 2009
Messages
157
Reaction score
0
Location
Chile
Hello, the talkaction on my server !changesex works:

Code:
function onSay(cid, words, param)
	if getPlayerAccess(cid) > 0 then
		doPlayerSetSex(cid, getPlayerSex(cid) == 0 and 1 or 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your sex.")
		return
	end

	if getPlayerPremiumDays(cid) > 2 then
		doPlayerRemovePremiumDays(cid, 3)
		doPlayerSetSex(cid, getPlayerSex(cid) == 0 and 1 or 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your sex and lost three days of premium account.")
	else
		doPlayerSendCancel(cid, "You do not have enough premium days, changing sex costs three of your premium days.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
end

But i wanna know for what is this:
Code:
	if getPlayerAccess(cid) > 0 then
		doPlayerSetSex(cid, getPlayerSex(cid) == 0 and 1 or 0)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed your sex.")
		return
	end

Because i erase it and the talkaction works fine..

Regards !
 
Last edited:
Back
Top