Check if player has multiple IP's/Alts?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

utol

Member
Feb 10, 2017
17
1
0
25
Hey! I basically wanted to know how to check if player has multiple ip's/alts?

on command:
"multiple alts check code:"
cancel event
loop all players:
if player has permission "warn.staff":
send "%player% is paying himself on his alt!" to loop-pkayer
else:
 
code_language.skript:
on join:
    if {ip.%player%} is not set:
        set {ip.%player%} to IP of player
    else:
        if {ip.%player%} is not IP of player:
            loop all players:
                if player has permission "permission.cmd":
                    send "The player %player%  has several IP's" to loop-player
 
code_language.skript:
on join:
    if {ip.%player%} is not set:
        set {ip.%player%} to IP of player
    else:
        if {ip.%player%} is not IP of player:
            loop all players:
                if player has permission "permission.cmd":
                    send "The player %player%  has several IP's" to loop-player
why if {ip.%player%} is NOT IP of player?
 
If I understand correctly, team members are to be notified when a player performs a command but has changed their IP.
[doublepost=1486811184,1486811122][/doublepost]Or do you mean, if you run a command all the players see the several IP's have?
[doublepost=1486811222][/doublepost](Sorry for my bad English :emoji_grinning:)
 
If I understand correctly, team members are to be notified when a player performs a command but has changed their IP.
[doublepost=1486811184,1486811122][/doublepost]Or do you mean, if you run a command all the players see the several IP's have?
[doublepost=1486811222][/doublepost](Sorry for my bad English :emoji_grinning:)
If you run a command, but your on a alt it will tell all the "loop-players" that has permission "warn.alt" saying "&c%player% is alting!"
 
I hope you mean this:

Not tested (no MC open).
I hope it goes. If not please say.

code_language.skript:
on join:
    if {ip.%player%} is not set:
        set {ip.%player%} to IP of player
        set {name.%IP of player%} to player

on command:
    if {ip.%player%} is not IP of player:
        loop all players:
            if player has permission "warn.ip":
                send "The player %player%  has several IP's" to loop-player
                
on command:
    if {name.%IP of player%} is not player:
        loop all players:
            if player has permission "warn.alt":
                send "&c%player% is alting!" to loop-player