bump i can pay rsgp for this service
|
i need help to make that if same ip kill they dont receive any pkp
and i get alot of ppl want me to trade their pkp items for their pkp back i want
to make a shop that would buy them back for half price
and also chaotic crossbow dont work on players it works only on nps how do i fix that
plz help
my email is :[email protected]
bump i can pay rsgp for this service
Easy, make it so only 1 IP per user, and if you kill the same person twice you don't get PKP.
first i need u to tell me how to do that
but i dont care if they attack the same person wat i dont want that 1 person open 2 acconts and keep killing him self
just so you can get the thought how you could do this.
Then add a check, for people within the list with a difference of 10 minutes + save on logout.Code:public static void addToRecentKills(String addedIP, Client killer) { int emptySpot = -1; long approvedTime = System.currentTimeMillis() - 600000; for (int i = 0; i < killer.recentKills.length; i++) { if (killer.recentKills[i] == null) { emptySpot = i; continue; } String[] IPData = killer.recentKills[i].split(","); long killedTime = Long.parseLong(IPData[1]); if (killedTime < approvedTime) { killer.recentKills[i] = null; if (emptySpot == -1) emptySpot = i; } } killer.recentKills[emptySpot == -1 ? 0 : emptySpot] = addedIP+","+System.currentTimeMillis(); }
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |