Posts: 303
Threads: 43
Joined: May 2010
Reputation:
0
Hello
I want the /rcon login xxxx only can be typed by a IP, if that IP doesn't match it sends a message to the player and it cant log in
Only the IP write in the gamemode can log into rcon
Do you know guys how to make that?
Posts: 2,857
Threads: 62
Joined: Dec 2010
Reputation:
0
Check the player IP in the OnRconLogin callback and compare it to the IP you want to allow to login. Please don't PM me next time...
Posts: 303
Threads: 43
Joined: May 2010
Reputation:
0
Can you show me how to make that please? an example.
And sorry for the PM.
Posts: 269
Threads: 2
Joined: May 2011
Reputation:
0
In the default script ,there is a callback called OnRconLogin(playerid[ip])(i think so) but there is one problem ,if you turn you router off and on,then you cant enter the Rcon,because your IP will be changed.
Posts: 303
Threads: 43
Joined: May 2010
Reputation:
0
I know, if i turn off modem, ill put my new IP on the gamemode where is the RconLogin so that allow me again to log into rcon.
I need an example how to make it, as linuxthefish said
Posts: 303
Threads: 43
Joined: May 2010
Reputation:
0
Mean, undefinied symbol playerid
Posts: 2,857
Threads: 62
Joined: Dec 2010
Reputation:
0
You need to loop through all the players and get there IP's, then match the IP that is trying to login with the IP you are sending the message to. I think someone made a SendMessageToIP(ip, colour, message);