Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward OnRconLoginAttemp(ip[], password[], success);
- public OnRconLoginAttemp(ip[], password[], success)
- {
- if(success)
- {
- new pip[16];
- new string[128];
- for(new i = 0; i<MAX_PLAYERS; i++)
- {
- GetPlayerName(i, sendername, sizeof(sendername));
- GetPlayerIp(i, pip, sizeof(pip));
- if(!strcmp(ip, pip, true))
- {
- if(strcmp(sendername,"Ricardo_Santos", true) == 0)
- {
- format(string, sizeof(string), "Bem Vindo senhor %s, agora o senhor esta logado como RCon com Sucesso !", sendername);
- SendClientMessage(i, COLOR_WHITE, string);
- return true;
- }
- else
- {
- SendClientMessage(i, COLOR_YELLOW, "Vaza daki seu nego fdp, volta pra merda dakele seu servidor!");
- SendClientMessage(i, COLOR_YELLOW, "A culpa não eh minha seu invejoso, sua inveja eh minha fama caralho!");
- getdate(year, month, day);
- gettime(hour,minute);
- format(gstring,sizeof(gstring), "%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),day, month, year,hour, minute);
- SBan(i, "Admin Rcon", "Guardião_Negro");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment