Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define RCONPWD "gtaturk"
- #define RCONDIALOG 17145
- public OnFilterScriptInit() {
- print("RCON guvenlik sistemi yuklendi.");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == RCONDIALOG)
- {
- if(!response) {
- BanEx(playerid, "Hacker Okan"); // 2. şifreyi girmek istemediği için banlandı.
- }else{
- if(strcmp(inputtext, RCONPWD, false)) {
- BanEx(playerid, "Hacker Okan"); // yanlış şifre girdiği için banlandı.
- }else{
- SendClientMessage(playerid, -1, "RCON giriş tamamlandı.");
- }
- }
- return 1;
- }
- return 0;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success)
- {
- printf("RCON Giris: IP: %s - Sifre: %s", ip, password);
- new pip[16];
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- GetPlayerIp(i, pip, sizeof(pip));
- if(!strcmp(ip, pip, true))
- {
- ShowPlayerDialog(i, RCONDIALOG, DIALOG_STYLE_PASSWORD, "RCON Giriş", "RCON şifrenizi girin:", "Tamam", "");
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment