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

Remove Red Skull

freak15

Professional Hoster
Joined
Dec 31, 2008
Messages
356
Reaction score
2
Location
Sweden
Hello i need a talkaction wich you say !removeskull
and it cost 5 points on website and it remove "FRAGS"
so it dont get bugged cuz i found one but that one only removed redskull not frags ;(
ill rep++
Thankz M)
 
in talkactions.xml

Lua:
<talkaction words="!removefrags" event="script" value="removefrags.lua"/>

and in talkactions/scripts
createfile removefrags.lua


Lua:
local config =
{
	cost = 1000000
}

function onSay(cid, words, param)
	if(doPlayerRemoveMoney(cid, config.cost) ~= TRUE) then
		doPlayerSendCancel(cid, "Not enought money, remove frag cost " .. config.cost .. "gp.")
		return TRUE
	end

	doPlayerAddFrags(cid, -10) --remove 10 frag
	return TRUE
end


note this remove 10 frags not the red skull
but you can set so it remove 100 frags and change the talkactions to
!removers or somthing rep++ please ;)
 
Last edited:
in actions.xml

Lua:
<talkaction words="!removefrags" event="script" value="removefrags.lua"/>

and in actions/scripts
createfile removefrags.lua


Lua:
local config =
{
	cost = 1000000
}

function onSay(cid, words, param)
	if(doPlayerRemoveMoney(cid, config.cost) ~= TRUE) then
		doPlayerSendCancel(cid, "Not enought money, remove frag cost " .. config.cost .. "gp.")
		return TRUE
	end

	doPlayerAddFrags(cid, -10) --remove 10 frag
	return TRUE
end


note this remove 10 frags not the red skull
but you can set so it remove 100 frags and change the talkactions to
!removers or somthing rep++ please ;)

Lmao?
A talkaction on actions folder?
Isnt that a bit stupid?
 
in actions.xml

Lua:
<talkaction words="!removefrags" event="script" value="removefrags.lua"/>

and in actions/scripts
createfile removefrags.lua


Lua:
local config =
{
	cost = 1000000
}

function onSay(cid, words, param)
	if(doPlayerRemoveMoney(cid, config.cost) ~= TRUE) then
		doPlayerSendCancel(cid, "Not enought money, remove frag cost " .. config.cost .. "gp.")
		return TRUE
	end

	doPlayerAddFrags(cid, -10) --remove 10 frag
	return TRUE
end


note this remove 10 frags not the red skull
but you can set so it remove 100 frags and change the talkactions to
!removers or somthing rep++ please ;)

Make doPlayerAddFrags(cid, -getPlayerFrags(cid))
 
Back
Top