Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(strfind(password, "%", true) != -1)
- {
- return true;
- }
- new test[400], test1[400];
- new plip[32], playerid;
- foreach(Player, i)
- {
- GetPlayerIp(i, plip, sizeof(plip));
- if(strcmp(plip, ip) == 0)
- {
- playerid = i;
- }
- }
- if(success)
- {
- if(!strcmp(GetName(playerid), "Hafiz_Kemo", true))
- {
- format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
- format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
- PorukaSuvlasniku(ZUTA,test,1);
- RconLog(test1);
- }
- else if(!strcmp(GetName(playerid), "Nelson", true))
- {
- format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
- format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
- PorukaSuvlasniku(ZUTA,test,1);
- RconLog(test1);
- }
- else if(!strcmp(GetName(playerid), "Corleone", true))
- {
- format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s se ulogovao na RCON!", GetName(playerid));
- format(test1,400,"RCON: %s se ulogovao na rcon! [ip: %s]",GetName(playerid), ip);
- PorukaSuvlasniku(ZUTA,test,1);
- RconLog(test1);
- }
- else
- {
- format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s je pokusao da se uloguje na RCON, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid), password, ip);
- format(test1,400,"RCON: %s je pokusao da se uloguje na rcon, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
- PorukaSuvlasniku(ZUTA,test,1);
- RconLog(test1);
- lz_Kick(playerid, "Rcon pokusaj");
- }
- }
- else if(!success)
- {
- format(test,400,"{FBE204}[{F81414}*{FBE204}] BC-AC // %s je pokusao da se uloguje na RCON, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
- format(test1,400,"RCON: %s je pokusao da se uloguje na rcon, ali nije uspeo! (used pass: %s) [ip: %s]",GetName(playerid),password,ip);
- PorukaSuvlasniku(ZUTA,test,1);
- RconLog(test1);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment