PDA

View Full Version : heres how to make ::Givekills (gives them pk points)



aksl8
June 20th, 2010, 18:13
heres the code that i stealed from my friend :) code:
if(cmd[0].equalsIgnoreCase("givekills")){
String person = (cmd[1].replace("_", " "));
Player p2 = Engine.players[Engine.getIdFromName(person)];
p2.kills += Integer.parseInt(cmd[2]);
p2.totalKills += Integer.parseInt(cmd[2]);
p2.KC += Integer.parseInt(cmd[2]);
p.getActionSender().sendMessage(p, "You add " + Integer.parseInt(cmd[2]) + " to "+p2.username+"'s kills");
}

thirkle
July 27th, 2010, 02:40
What Deob is this for?

X D
July 27th, 2010, 04:52
Probably czar. 317

h1 sk1ller
July 27th, 2010, 05:14
Nice But I Don't Have A Pking Server :) Lol

Gary
September 15th, 2010, 01:32
This is obviously 517. Hence the if(cmd[0].equals

Also, don't post if you don't have feedback. Saying shit like 'nice but i dont have a pking server' is just getting you post count.

Aaron
September 15th, 2010, 01:33
Eh, Nice job on this, This was like old genxpk 525 style

Hutch
September 15th, 2010, 04:50
Decent CP + 1.5

almagesrnubs
October 28th, 2010, 20:15
Don't be a retard and add one command, and the source you dont know to add it to.. It will be probably a delta source.