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

Please write script to me!

BioHazard94

P[r]oland
Joined
Mar 24, 2009
Messages
116
Reaction score
0
Location
P[r]oland
Hello, today I got an idea to do the script.
Already explain what would rely on.
Knowing that not everyone has the money could buy PremiumPoints in the game!

Depending on how the server and how to look at the Sports Shop prices.

A premium point = 100 gp

! Buypp 100

And the backpack is a player takes a crystal coin shop and SMS premium is added to 100 points.

I think this is a very good solution to the security and light FUN OTSów and RL maps against phishing money from people.

You do not have to subsidize Items from the server and receive SMS.

What do you such a thing?
Is he someone to do this script?
 
Code:
local cost = 1000000
function onSay(cid, words, param, channel)
	param = tonumber(param)
	if(param < 1 or param > 15) then
		doPlayerSendTextMessage(cid, "You can buy only 1-15 points once (!buypp 1-15).")
	else
		if(getPlayerMoney(cid) > cost * param) then
			doPlayerRemoveMoney(cid, cost * param)
			db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + ".. param .." WHERE `id` = ".. getPlayerAccountId(cid) ..";")
			doPlayerSendCancel(cid, param .." premium points has been added to your account.")
		else
			doPlayerSendCancel(cid, "You don't have enough money.")
		end
	end
	return true
end
 
PHP:
local cost = 100
function onSay(cid, words, param, channel)
	param = tonumber(param)
	
	if not(doPlayerRemoveMoney(cid, cost * param))then
		doPlayerSendCancel(cid, "You don't have enough money.")
		return TRUE
	end
	
	db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + ".. param .." WHERE `id` = ".. getPlayerAccountId(cid) ..";")
	doPlayerSendCancel(cid, param .." premium points has been added to your account.")	
	return TRUE
end
with unlimited buy ammount at once time
 
PHP:
local cost = 100
function onSay(cid, words, param, channel)
	param = tonumber(param)
	
	if not(doPlayerRemoveMoney(cid, cost * param))then
		doPlayerSendCancel(cid, "You don't have enough money.")
		return TRUE
	end
	
	db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + ".. param .." WHERE `id` = ".. getPlayerAccountId(cid) ..";")
	doPlayerSendCancel(cid, param .." premium points has been added to your account.")	
	return TRUE
end
with unlimited buy ammount at once time

What if cost will be 1,000,000 (means 100cc) and someone would buy 1,000 points? Invalid numbers i think :s
 
Back
Top