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

TalkAction !save(Saves character)

someone please post a working version for 0.3.6 please
 
The script should work, but here's another one.

Code:
function onSay(cid, words, param, channel)
	local cfg = {
		storage = 4931,
		time = 30 * 1000
	}
	if(exhaustion.get(cid, cfg.storage) == false) then
		doPlayerSave(cid, true)
		exhaustion.set(cid, cfg.storage, cfg.time)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait " .. exhaustion.get(cid, cfg.storage) .. " seconds.")
	end
	return true
end
 
Last edited:
@JDB
Jaja 2 lines shorter xD
Code:
function onSay(cid, words, param, channel)
	local cfg = {}
	cfg.storage = 4931
	cfg.time = 30 * 1000
	if exhaustion.get(cid, cfg.storage) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait " .. exhaustion.get(cid, cfg.storage) .. " seconds.")
	end
	doPlayerSave(cid)
	exhaustion.set(cid, cfg.storage, cfg.time)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
	return true
end
 
@Up,
Wow, freakin genious. :huh:

@Dil,
Yea I know this should work, weird that he said it didn't.
 
@JDB
Tnx.

@topic
Well, I heard that doSavePlayer is not saving player position. It's.. weird?
 
To bad they destroyed the chance to use this script in the newest TFS 0.3 :///
Since data.lua doesn't exist anymore..
 
Back
Top