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

[Help] PvP Tournament Script!

cachero18

New Member
Joined
Jul 20, 2008
Messages
57
Reaction score
0
Hello, My server is 24/7 and i need an script of PvP Tournament...

I want that ur killing somebody in PvP Zone[Arena]... and u kill somebody and u hear a message saying ["You have now 1 Frag"]
and when u are at 30 Frags a broadcast message say's ["The Player Blablabla has won the PvP Tournament with 30 Frags!"]...

Please if someone can help me thanks ^^...
 
Here is your first request, gonna make the other one

This sends the killer a message how many kills he got

Lua:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if isPlayer(lastHitKiller) == TRUE then
	doPlayerSendTextMessage(lastHitKiller, MESSAGE_INFO_DESCR, "You have now "..getPlayerFrags(cid).." kills.")
	end
		return TRUE 
end
 
Last edited:
the other one that broadcasts message if someone reach 20 kills, 30, 40, 60, 80 when reach 80 it says he won the tournament!

Lua:
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
local config = {
killsMsg20 = ""..getPlayerName(cid).." has reached 20 kills!",
killsMsg30 = ""..getPlayerName(cid).." has reached 30 kills!!",
killsMsg40 = ""..getPlayerName(cid).." has reached 40 kills!!!",
killsMsg60 = ""..getPlayerName(cid).." has reached 60 kills! Kill before he win the tournament!",
winMsg = ""..getPlayerName(cid).." won the tournament! Congratulations!!"
}

	if isPlayer(cid) == TRUE and getPlayerFrags(cid) == 20 then
		broadcastMessage(config.killsMsg20, MESSAGE_STATUS_CONSOLE_RED)
	elseif isPlayer(cid) == TRUE and getPlayerFrags(cid) == 30 then
		broadcastMessage(config.killsMsg30, MESSAGE_STATUS_CONSOLE_RED)
	elseif isPlayer(cid) == TRUE and getPlayerFrags(cid) == 40 then
		broadcastMessage(config.killsMsg40, MESSAGE_STATUS_CONSOLE_RED)
	elseif isPlayer(cid) == TRUE and getPlayerFrags(cid) == 60 then
		broadcastMessage(config.killsMsg60, MESSAGE_STATUS_CONSOLE_RED)
	elseif isPlayer(cid) == TRUE and getPlayerFrags(cid) == 80 then
		broadcastMessage(config.winMsg, MESSAGE_STATUS_CONSOLE_RED)
	end
		return TRUE
end

feel free to rep++ me :)
 
Last edited:
Back
Top Bottom