[Ajuda] Ajuda com include DOF2!
#6

Esse й o cуdigo, sу nгo entendo dele estar dando este problema...
Код:
CMD:banir(playerid, params[])
{
    if(PlayerInfo[playerid][Admin] == 0) return SendClientMessage(playerid, COR_ERRO, "| ERRO | Comando Invбlido!");
    if(PlayerInfo[playerid][Admin] == 1)
    {
       return SendClientMessage(playerid, COR_ERRO, "| ERRO | Vocк nгo tem permissгo!");
    }
    if(PlayerInfo[playerid][Admin] == 2 || PlayerInfo[playerid][Admin] == 3 || PlayerInfo[playerid][Admin] == 4 || PlayerInfo[playerid][Admin] == 5)
    {
       new string[900];
       new motivo;
       new pName[MAX_PLAYER_NAME];
       GetPlayerName(IDPlayer, pName, sizeof(pName));
       if(sscanf(params, "us[900]", IDPlayer, motivo))
       {
          return SendClientMessage(playerid, COR_ERRO, "| ERRO | Digite: /Banir [ID] [Motivo]");
       }
       format(arquivo, sizeof(arquivo), PASTA_CONTAS, pName);
       new dia, mes, ano;
       getdate(dia, mes, ano);
       new hora, minuto;
       gettime(hora, minuto);
       format(string, sizeof(string), "O admin %s baniu %s || motivo: %s - %d/%d/%d - %2d-%2d", PlayerName(playerid), pName, motivo, dia, mes, ano, hora, minuto);
       BanLog(string);
       new string2[900];
       format(string2, sizeof(string), "O Admin %s baniu %s || motivo: %s", PlayerName(playerid), pName, motivo);
       SendClientMessageToAll(COR_VERMELHO, string2);
       format(string2, sizeof(string2), "| BAN | Vocк foi banido(a) do servidor pelo motivo ( %s )", motivo);
       SendClientMessage(IDPlayer, COR_BRANCO, string2);
       SendClientMessage(IDPlayer, COR_BRANCO, "| BAN | Se vocк acha que foi banido(a) injustamente, tire um print ( F8 ) desse ban!");
       SendClientMessage(IDPlayer, COR_BRANCO, "| BAN | Peзa revisгo em nosso fуrum ( www.advancedlife.com.br/forum ) seguindo todas as regras de postagem!");
       SendClientMessage(IDPlayer, COR_BRANCO, "| BAN | E aguarde a Administraзгo analisar seu caso!");
       GameTextForPlayer(IDPlayer, "~r~banido!", 3000, 5);
       TogglePlayerControllable(IDPlayer, 0);
       format(celula, sizeof(celula), PASTA_BANIDOS, pName);
       if(!fexist(celula))
       {
          DOF2_CreateFile(celula);
          DOF2_SetString(celula, "BanidoDoBan", pName);
          DOF2_SetString(celula, "AdministradorDoBan", PlayerName(playerid));
          DOF2_SetString(celula, "MotivoDoBan", motivo);
          DOF2_SetInt(celula, "DiaDoBan", ano);
          DOF2_SetInt(celula, "MesDoBan", mes);
          DOF2_SetInt(celula, "AnoDoBan", dia);
          DOF2_SetInt(celula, "HoraDoBan", hora);
          DOF2_SetInt(celula, "MinutoDoBan", minuto);
          DOF2_SaveFile();
       }
       Ban(IDPlayer);
    }
    return 1;
}
Reply


Messages In This Thread
Ajuda com include DOF2! - by LincolnBarbosa - 03.09.2017, 04:37
Re: Ajuda com include DOF2! - by DelK - 03.09.2017, 11:05
Re: Ajuda com include DOF2! - by fxckshzt - 03.09.2017, 14:30
Re: Ajuda com include DOF2! - by RodrigoMSR - 03.09.2017, 15:23
Re: Ajuda com include DOF2! - by fxckshzt - 03.09.2017, 15:31
Re: Ajuda com include DOF2! - by LincolnBarbosa - 05.09.2017, 00:52
Re: Ajuda com include DOF2! - by IlanZ - 05.09.2017, 01:02
Re: Ajuda com include DOF2! - by LincolnBarbosa - 05.09.2017, 01:59

Forum Jump:


Users browsing this thread: 1 Guest(s)