[Ajuda] AgendandoCadeia(idcheck, playerid);
#8

Vou tentar resolver por aqui, daн te mando o code completo.

@EDIT

Код:
forward AgendandoCadeia(idcheck, playerid);
public AgendandoCadeia(idcheck, playerid)
{
    new arquivo[64], DannielCooper, PresoMotivo[64], PresoNome[64];

    if(idcheck == 1)
    {
        format(arquivo, sizeof(arquivo), "Agendados/JAIL%s.ini",PlayerName(playerid));
		if(dini_Exists(arquivo))
        {
            strmid(PresoNome, dini_Get(arquivo,"Admin"), 0, strlen(dini_Get(arquivo,"Admin")), 255);
            strmid(PresoMotivo, dini_Get(arquivo,"Motivo"), 0, strlen(dini_Get(arquivo,"Motivo")), 255);
            DannielCooper = dini_Int(arquivo,"Tempo");
            format(gstring, sizeof(gstring), "* Admin %s Agendou Sua Prisгo, Motivo: %s.", PresoNome,PresoMotivo);
            SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
            format(gstring, sizeof(gstring), "Vocк foi preso altomaticamente. Motivo: %s, pelo Admin %s", DannielCooper);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
            GameTextForPlayer(playerid, "~b~Bem Vindo ao ~n~~r~~h~Carandiru", 5000, 3);
            WantedPoints[playerid] = 0;
            ResetPlayerWeapons(playerid);
            SetPlayerWantedLevel(playerid, 0);
            PlayerInfo[playerid][pJailed] = 2;
            PlayerInfo[playerid][pJailTime] = DannielCooper * 60;
            SetPlayerPos(playerid, 346.5848, 306.1026, 999.1484);
            SetPlayerInterior(playerid,6);
            format(gstring, sizeof(gstring), "AdmAviso: {80E3FF}%s {E84F33} Estб Agendado e Foi preso, Motivo: %s",PlayerName(playerid) ,PresoMotivo);
    	    ABroadCast(COLOR_LIGHTRED,gstring,1);
            fremove(arquivo);
        }
        return 1;
    }
Nгo sei se vocк resolveu, mais tб aн.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)