• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Frag Remove Doll

undead mage

Active Member
Joined
Mar 25, 2012
Messages
364
Solutions
2
Reaction score
47
Location
Amsterdam
just say !removefrags with the doll in ur bp :)

This In Talkactions
PHP:
	<talkaction words="!removefrags" event="script" value="removefrags.lua"/>


data\talkactions\scripts\removefrags
PHP:
function onSay(cid, words, param)
 
	if getPlayerItemCount(cid, 2110) >= 1 then
	doPlayerRemoveItem(cid, 2110, 1)
	db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
 	doPlayerSendTextMessage(cid,25,"Your frags have been removed.")
	else
	doPlayerSendCancel(cid, 'You need a doll for this.')
	end
end

(Also this script isnt mine! im just sharing :) its from Limos so give her the rep ;))
 
I don't think putting credits is necessary here, since those are just a few lines that almost everyone can make :p But thnx for the credits anyway xd
 
Last edited:
Back
Top