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

Stamine Time & Frags.

Abba

New Member
Joined
Jan 12, 2009
Messages
9
Reaction score
0
Hello.

I need help with this script.
Code:
local staminaMaxMinutes = 2520
local cost = 5000
 
function onSay(cid, words, param, channel)
	if(getPlayerStamina(cid) < staminaMaxMinutes) then
		if(doPlayerRemoveMoney(cid, cost)) then
			doPlayerSetStamina(cid, 2520)
			doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have restored your stamina for " .. cost .. " gold.")
		else
			doPlayerSendCancel(cid, "You need " .. cost .. " gold to restore your stamina.")
		end
	else
		doPlayerSendCancel(cid, "Your stamina is already full.")
	end
 
	return true
end

But ... How do I get to make the command in 4 days?
My stamine system no work :/ and this is the solution i get far.

Other.
RedSkull system no work.. i've in the config.lua

Code:
  killsToRedSkull = "6"
  timeToDecreaseFrags = 6 * 60 * 60 * 1000

and with 3 kills the players become Red Skull ¿?¿?¿?¿? and no loss frags
help me.. :/

Regards.
Abba.
 
Back
Top