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

Donate exp

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
I need help to player receive 10% of ur exp points, look in red(don't working):

Code:
			---by BomBa---
			--------------

				function onLogin(cid) 
	if getPlayerStorageValue(cid, DONATE_STOR) == -1 then
	   addEvent(autoExp, 900 * 1000)
 end
 reuturn TRUE
end
				function autoExp()
 local msg =
{
   notDonator = "Be a donor too!"
}
	if getPlayerStorageValue(cid, DONATE_STOR) == -1 then
	   doPlayerAddExp(cid, PLAYER_EXP/90)
	   doSendAnimatedText(getPlayerPosition(cid), PLAYER_EXP/90, TEXTCOLOR_WHITE)
    else
	   doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, msg.notDonator)
 end
 return TRUE
end

PLAYER_EXP/90
getPlayerExp(cid), exist? or is other function...
 
Lol this could pretty much stuff an OtServer to making the owner reset it and then loose all his players.

on the other hand it doesn't sound to bad the way you described it :/
 
Back
Top