SA-MP Forums Archive
How To Create This? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How To Create This? (/showthread.php?tid=312922)



How To Create This? - Littlehelper - 23.01.2012

Hello,
i've been watchin' some ppl comin into my server with my name, and they donot login, they just put the rcon and start bannin' ppl from there, so i wanted a system by which no one else can connect to the server with my name, only if the IP matches, it will allow the player to play with my name.
Thank You.


Re: How To Create This? - Silentfood - 23.01.2012

RCON? Are you sure that only you have the password? Because if they can get in, then they're using /rcon login [ServerRCONpassword].


Re: How To Create This? - lordturhan - 23.01.2012

Or you can make login in dialogs


Re: How To Create This? - Littlehelper - 23.01.2012

Quote:
Originally Posted by Silentfood
Посмотреть сообщение
RCON? Are you sure that only you have the password? Because if they can get in, then they're using /rcon login [ServerRCONpassword].
...........
They are hacking my rcon password...


Re: How To Create This? - Littlehelper - 23.01.2012

Quote:
Originally Posted by lordturhan
Посмотреть сообщение
Or you can make login in dialogs
Yes, i do have them, but they are somehow bugging the dialogs and the dialog just disappears, checked the whole script, but they're still somehow managing to get in...


Re: How To Create This? - [XST]O_x - 23.01.2012

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[24],IP[16];
    GetPlayerName(playerid,name,24); GetPlayerIp(playerid,IP,16);
    if((strcmp(name,"Your name",false) == 0) && (strcmp(IP,"Your IP",false) != 0))
    {
        SendClientMessage(playerid,-1,"You are not Your name!");
        kick(playerid);
    }
    return 1;
}



Re: How To Create This? - Littlehelper - 23.01.2012

Will test it,
Thankx.