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

Lua Player Level Reset

rugdoc95

New Member
Joined
May 6, 2011
Messages
61
Reaction score
0
Hello i use tfs for 8.54
I need to make it so when a player dies he gets put back to X lvl
Example " A player dies and returns to the lvl he started game with.
Also i need to make it so When a player kills another player he gets 1 lvl only...

Ty in advance Rep++ for those who help!
 
creature event.
setPlayerLevel(cid, 50)
not sure about that will work though.

Code:
function onLogin(cid)
    if getPlayerLevel(cid) > 50 then
	setPlayerLevel(cid, 50)
end
return TRUE
end
 
I dont know how you can do it in lua when setPlayerLevel dont work ;/ but i know in C++ if u have a source go to iologindata.cpp somwhere near 410 line is section where player data is loading.
 
Back
Top