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

Windows Fragreward?

bo420169

New Member
Joined
Feb 4, 2010
Messages
143
Reaction score
0
Im using Simple War OT v1.4 pl1

For some reason the Fragreward will Not work
When a player kills somone they suppost to get an (item)
Well when a player kills a fraged player they get nothing
could somone help me?
or post a working Fragreward Script
 
Are you using this script?

(Credit to Simple War OT)
Code:
function onKill(cid, target, lastHit)
local reward = {
        item = 2152, --ITEM ID!
        count = 1 -- How many?
}
        if(isPlayer(cid) and isPlayer(target)) then
	if getPlayerIp(cid) ~= getPlayerIp(target) then
                doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
                end
end
return TRUE
end
 
try this;
Code:
function onKill(cid, target, lastHit)
	if isPlayer(cid) and isPlayer(target) then
		if getPlayerIp(cid) ~= getPlayerIp(target) then
			doPlayerAddItem(cid, 2152, 1)
		else
			doPlayerAddExperience(cid, -100000)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
		end
	end
	return true
end
 
Back
Top