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

Command to take frags

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hello
I need one command like /attr skull 0...
To put off all frags of the player.
cansomeone do that?
ty
 
Code:
function onSay(cid, words, param, channel)
	local param = getPlayerByNameWildcard(param)
	if isPlayer(param) then
		db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(param) .. ");")
		doPlayerSetSkullEnd(param, 0, getPlayerSkullType(param))
		doCreatureSetSkullType(param, SKULL_NONE)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully removed " .. getPlayerName(param) .. "'s frags.")
	else
		doPlayerSendCancel(cid, "Player not found.")
	end
	return true
end
 
Back
Top