[AJUDA] DOF2 ...
#5

ta ae
PHP код:
    if(!strcmp(cmd"/agendarcadeia",true))
    {
        if(
PlayerInfo[playerid][pAdmin] >= 1000)
        {
            if(
PlayerInfo[playerid][pATrabalhar] < 1)
            {
                
SendClientMessage(playeridCOLOR_WARNING"Vocк nгo estб trabalhando! (/adm)");
                return 
1;
            }
            new 
salvo;
            new 
wiiStr[70];
            new 
tempo2 strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_WHITE"USE: /agendarcadeia [ Tempo ]");
                return 
1;
            }
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
                
idx++;
            }
            new 
offset idx;
            new 
result[64];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
                
result[idx offset] = cmdtext[idx];
                
idx++;
            }
            
result[idx offset] = EOS;
            if(!
strlen(result))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /agendarcadeia [ Tempo ] [ Nome ]");
                return 
1;
            }
            
format(wiiStrsizeof(wiiStr), "Contas/%s.ini"result);
            if(
fexist(wiiStr))
            {
                
salvo DOF2_GetInt(wiiStr,"JailTime");
                
DOF2_SetInt(wiiStr,"NivelProcurado"0);
                
DOF2_SetInt(wiiStr,"Preso"6);
                new 
resultado =  salvo += tempo2 60;
                
DOF2_SetInt(wiiStr,"JailTime"resultado);
                
DOF2_SaveFile();
                
format(stringsizeof(string), "**** %s Foi preso com sucesso TEMPO >> %d Segundos ! ! !",result,resultado);
                
ABroadCast(COLOR_WARNING,string,1000);
            }
            else
            {
                
SendClientMessage(playeridCOLOR_WARNING"**** Esta conta nгo existe ! ! !");
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_WARNING"*** Voce nao tem permissao para usar esse comando.");
        }
        return 
1;
    } 
Reply


Messages In This Thread
[AJUDA] DOF2 ... - by lucas_mdr1235 - 14.11.2011, 19:55
Re: [AJUDA] DOF2 ... - by ViniBorn - 14.11.2011, 20:14
Re: [AJUDA] DOF2 ... - by lucas_mdr1235 - 14.11.2011, 20:26
Re: [AJUDA] DOF2 ... - by Pharrel - 14.11.2011, 23:10
Re: [AJUDA] DOF2 ... - by lucas_mdr1235 - 14.11.2011, 23:12
Re: [AJUDA] DOF2 ... - by Pharrel - 14.11.2011, 23:23
Re: [AJUDA] DOF2 ... - by lucas_mdr1235 - 14.11.2011, 23:27
Re: [AJUDA] DOF2 ... - by Pharrel - 14.11.2011, 23:32
Re: [AJUDA] DOF2 ... - by lucas_mdr1235 - 14.11.2011, 23:36
Re: [AJUDA] DOF2 ... - by Pharrel - 14.11.2011, 23:42

Forum Jump:


Users browsing this thread: 1 Guest(s)