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

Lua onkill

owned

Excellent OT User
Joined
Nov 9, 2008
Messages
2,001
Solutions
3
Reaction score
558
Location
New York
how can i make it so that if a player kills another player with the same ip they dont gain exp. i dont wanna edit the sources though so i would like to know if someone could give me a script?
 
creaturescripts/scrpits make a new lua called ipkill

Code:
function onKill(cid, target, lastHit)

	if getPlayerIp(cid) ~= getPlayerIp(target) then
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You wont recieve exp from the same IP.")

end
return TRUE
end

in creaturescripts/creaturescripts.xml add this
Code:
	<event type="kill" name="IpKill" event="script" value="ipkill.lua"/>
 
Back
Top