[Ajuda]
#3

Ta ae :
PHP код:
if(strcmp(cmd,"/laptop",true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 8)
            {
                if(
ConnectedToPC[playerid] == 255)
                {
                    
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк desligou seu Laptop, e desconectou da Agкncia.");
                    
ConnectedToPC[playerid] = 0;
                    return 
1;
                }
                new 
mtext[20];
                new 
yearmonth,day;
                
getdate(yearmonthday);
                if(
month == 1) { mtext "Janeiro"; }
                else if(
month == 2) { mtext "Fevereiro"; }
                else if(
month == 3) { mtext "Marзo"; }
                else if(
month == 4) { mtext "Abril"; }
                else if(
month == 5) { mtext "Maio"; }
                else if(
month == 6) { mtext "Junho"; }
                else if(
month == 7) { mtext "Julho"; }
                else if(
month == 8) { mtext "Agosto"; }
                else if(
month == 9) { mtext "Setembro"; }
                else if(
month == 10) { mtext "Outubro"; }
                else if(
month == 11) { mtext "Novembro"; }
                else if(
month == 12) { mtext "Dezembro"; }
                new 
hour,minuite,second;
                  
gettime(hour,minuite,second);
                
FixHour(hour);
                  
hour shifthour;
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк abriu seu Laptop, e conectou а Agкncia.");
                
SendClientMessage(playeridCOLOR_WHITE"|--Agкncia Assassino--|");
                
SendClientMessage(playeridCOLOR_WHITE"|-Noticias-|");
                
SendClientMessage(playeridCOLOR_WHITE"|-Contratos-|");
                
SendClientMessage(playeridCOLOR_WHITE"|-Atribuir-|");
                
SendClientMessage(playeridCOLOR_WHITE"|-Cargos-|");
                
SendClientMessage(playeridCOLOR_WHITE"|-Logout-|");
                
format(stringsizeof(string), "Mкs: %s | Dia: %d | Hora: %d:%d |"mtextdayhour+1minuite);
                
SendClientMessage(playeridCOLOR_WHITEstring);
                
ConnectedToPC[playerid] = 255;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й um Hitman !");
                return 
1;
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
[Ajuda] - by Felipe_capone - 02.09.2011, 15:29
Re: [Ajuda] - by Kmatsu - 02.09.2011, 15:38
Re: [Ajuda] - by Felipe_capone - 02.09.2011, 15:39

Forum Jump:


Users browsing this thread: 1 Guest(s)