Ahmedo0o
July 1st, 2010, 20:17
Hii...
Thats Me Ahmedo0o... I know this is my first tut or post in forums.. But iam always viewing the forums and i mostly knows all members but they don't knows me.. This is my tut to make an normal player or mod or admin don't lose Items on Death... Cuz some servers admins+ lose Items:eek:
Difficult 1/10
In Client.java in Source folder
& make a copy of ur client.java (so if u got errors)
Now Open client.java in your server folder & search for
deathStage == 2
You will see text similar to this...
if (!IsInFightCave() && !isInPitGame() && !isInPitRoom() && playerRights != 2 && playerRights != 3 && action != 1 && deathStage == 2 && System.currentTimeMillis() - deathTimer >= 2500) {
client killerz = (client) server.playerHandler.players[KillerId];
youdied();
killerz.rating += 15;
killerz.sM("You have defeated "+playerName+".");
}
Now add the Rights that u don't want them to lose items..
0 = Normal Player
1 = Mod
2 = Admin
3 = Owner
4 = Hidden Admin
& add playerRights != x after the playerRights != 3 then Compile & Run..
Btw x is the rights u don't want them to lose items...
Example : i want mods to not lose Items i added playerRights != 1
if (!IsInFightCave() && !isInPitGame() && !isInPitRoom() && playerRights != 2 && playerRights != 3 && playerRights != 1 && action != 1 && deathStage == 2 && System.currentTimeMillis() - deathTimer >= 2500) {
client killerz = (client) server.playerHandler.players[KillerId];
youdied();
killerz.rating += 15;
killerz.sM("You have defeated "+playerName+".");
}
Good Luck..
Any Error Post it Here.. ;D
Thats Me Ahmedo0o... I know this is my first tut or post in forums.. But iam always viewing the forums and i mostly knows all members but they don't knows me.. This is my tut to make an normal player or mod or admin don't lose Items on Death... Cuz some servers admins+ lose Items:eek:
Difficult 1/10
In Client.java in Source folder
& make a copy of ur client.java (so if u got errors)
Now Open client.java in your server folder & search for
deathStage == 2
You will see text similar to this...
if (!IsInFightCave() && !isInPitGame() && !isInPitRoom() && playerRights != 2 && playerRights != 3 && action != 1 && deathStage == 2 && System.currentTimeMillis() - deathTimer >= 2500) {
client killerz = (client) server.playerHandler.players[KillerId];
youdied();
killerz.rating += 15;
killerz.sM("You have defeated "+playerName+".");
}
Now add the Rights that u don't want them to lose items..
0 = Normal Player
1 = Mod
2 = Admin
3 = Owner
4 = Hidden Admin
& add playerRights != x after the playerRights != 3 then Compile & Run..
Btw x is the rights u don't want them to lose items...
Example : i want mods to not lose Items i added playerRights != 1
if (!IsInFightCave() && !isInPitGame() && !isInPitRoom() && playerRights != 2 && playerRights != 3 && playerRights != 1 && action != 1 && deathStage == 2 && System.currentTimeMillis() - deathTimer >= 2500) {
client killerz = (client) server.playerHandler.players[KillerId];
youdied();
killerz.rating += 15;
killerz.sM("You have defeated "+playerName+".");
}
Good Luck..
Any Error Post it Here.. ;D