Jump to content

Question

Posted

hello guys any one can help me what i need change here to get all players vote not only 1 player at same ip

 

if(player._active_boxes<=1 || (player._active_boxes>1 && checkSingleBox(player))){

6 answers to this question

Recommended Posts

  • 0
Posted

private final ArrayList<String> alreadyVoted = new ArrayList<>();

 

public void getVoteReward(L2PcInstance player)

{

        if (alreadyVoted.contains(player.blablbla.getIp())

        {

                player.sendMessage("Another player from the same IP address already claimed the reward.");

                return;

        }

        alreadyVoted.add(player.....getIp());

        //give reward code

}

  • 0
Posted

private final ArrayList<String> alreadyVoted = new ArrayList<>();

 

public void getVoteReward(L2PcInstance player)

{

        if (alreadyVoted.contains(player.blablbla.getIp())

        {

                player.sendMessage("Another player from the same IP address already claimed the reward.");

                return;

        }

        alreadyVoted.add(player.....getIp());

        //give reward code

}

no at here gives only 1 player at same ip i want to give every one cuz much players are playing on net cafe..

  • 0
Posted

no at here gives only 1 player at same ip i want to give every one cuz much players are playing on net cafe..

 

 

you can't do this without hwid getter so be happy with this one

  • 0
Posted

you can't do this without hwid getter so be happy with this one

 

He want's multiple accounts from same IP to have the rights to recieve the reward after player voted, i guess this doesn't recruit hwid.

  • 0
Posted

He want's multiple accounts from same IP to have the rights to recieve the reward after player voted, i guess this doesn't recruit hwid.

 

 

well most people ask for a restriction instead of an exploit usually, my mistake interfering for trashcode requests didnt even read it well

Guest
This topic is now closed to further replies.


×
×
  • Create New...