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

If login

Did it fast.

onLogin script:

LUA:
local s = 9000 -- death storagevalue
local ss = 9001 -- type in a unused storagevalue

local rate = {"You currently have ".. getPlayerFrags(cid) .." frags.", 
"You currently have ".. getPlayerStorageValue(cid, s) .." deaths.",
"Your rate is ".. getPlayerFrags(cid)/getPlayerStorageValue(cid, s) .."."}
function onLogin(cid)
	if getPlayerStorageValue(cid, ss) < 0 then
		setPlayerStorageValue(cid, ss, 1)
		setPlayerStorageValue(cid, s, 0)
	end
	for _, rates in ipairs (rate) do
	doPlayerSendTextMessage(cid, 19, rates)
	end
return true
end

onDeath script:
LUA:
local s = 9000 -- death storagevalue
function onDeath(cid, corpse, deathList) 
	if isPlayer(cid) then
		setPlayerStorageValue(cid, s, getPlayerStorageValue(cid, s) +1)
	end
	return true
end
 
Last edited:
Back
Top