lol this is piss gimme a min xD
|
Hey guys was just wondering is there a way to make a command something like ::Givepkp (username) and gives them PK points, I did use the search Button and googled it, couldnt find nothing, so could someone help me out?
Omg your god
Lol are you joking me, come on now man, add pkp then send and save through character files.
Nope not joking wouldnt be posting it here if it was?
Bump can anyone still help?
Use the givestaff command, and turn the c2.playerRights into c2.pkp or something like that!
Don't post if you're not going to help.Code:if (playerCommand.startsWith("givepkp") && playerCommand.charAt(10) == ' ') { try { String playerToG = playerCommand.substring(10); for(int i = 0; i < Config.MAX_PLAYERS; i++) { if(Server.playerHandler.players[i] != null) { if(Server.playerHandler.players[i].playerName.equalsIgnoreCase(playerToG)) { Server.playerHandler.players[i].pkp += 35; c.sendMessage("You have given "+Server.playerHandler.players[i].playerName+" x pkp points: "+Server.playerHandler.players[i].connectedFrom); } } } } catch(Exception e) { c.sendMessage("Player Must Be Offline."); } }
^ ew. Don't post if you don't know how to program.
looks like you didn't search..
http://www.rune-server.org/runescape...ivepoints.htmlCode:if(playerCommand.startsWith("givepoints") && c.playerRights == 3) { try { String[] args = playerCommand.split(" ", 2); String otherplayer = args[1]; int point = Integer.parseInt(args[2]); for(int i = 0; i < PlayerHandler.players.length; i++) { if(PlayerHandler.players[i] != null) { if(PlayerHandler.players[i].playerName.equalsIgnoreCase(otherplayer)) { Client c2 = (Client)PlayerHandler.players[i]; c2.magePoints += point; c.sendMessage("@blu@You have given "+otherplayer+", "+point+" Reward points."); c2.sendMessage("@red@You have been given "+point+" Reward points by "+c.playerName+"."); } } } } catch(Exception e) { c.sendMessage("Wrong syntax! ::givepoints name amount"); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |