• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Premium Points Ingame

zerghel

Tsuni
Joined
Jul 1, 2008
Messages
299
Reaction score
9
Can someone make an actionscript that adds 1 premium point on user's account (item dissapear)
this is 'cause i don't want any Donations for premium points, so they must win them ingame
 
It depends on how you want to store them.
Storing points in a storage value per-player would be the most reasonable way.
 
the thing is that may work with Gesior's acc maker for tfs 0.3.6 i don't know much about php but in my database the premium points are stored on the accounts table instead of the players table
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + 1 WHERE `id` = ".. getPlayerAccountId(cid) ..";")
	doRemoveItem(item.uid)
	return true
end
 
i'll try it ;) OMG it works IT WOOOORKS!
MUAJAJJAJAJA! Ty so much!
Rep+ (i don't know what is it for, but there it is)
 
Last edited:
Back
Top