[Ajuda] Hitmen cumpre contrato e server fecha ajuda
#5

esta estranho cara ta de boa la
quando eu uso /atribuir id quando mato o contrato ele fecha

PHP код:
    if(ConnectedToPC[playerid] == 255)
    {
        new 
idx;
        
tmp strtok(textidx);
        if ((
strcmp("contratos"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("contratos")))
        {
            if(
PlayerInfo[playerid][pCargo] < 4)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Somente Hitman com cargo 4 ou mais poderгo ver e atribuir contratos !");
                return 
0;
            }
            
SearchingHit(playerid);
            return 
0;
        }
        else if ((
strcmp("atribuir"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("atribuir")))
        {
            if(
hitfound == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Nгo hб contratos !");
                return 
0;
            }
            
tmp strtok(textidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USO: atribuir [playerid/Parte-do-Nick]");
                return 
0;
            }
            
giveplayerid ReturnUser(tmp);
            if(
IsPlayerConnected(giveplayerid))
            {
                if(
giveplayerid != INVALID_PLAYER_ID)
                {
                    if(
PlayerInfo[giveplayerid][pMember] != 8)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Esse jogador nгo й um Assassino !");
                        return 
0;
                    }
                    if(
GoChase[giveplayerid] < 999)
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   Este Assassino jб estб ocupado com um Contrato !");
                        return 
0;
                    }
                    if(
IsPlayerConnected(hitid))
                    {
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
GetPlayerName(giveplayeridgiversizeof(giver));
                        
GetPlayerName(hitidgiveplayersizeof(giveplayer));
                        
format(stringsizeof(string), "Vocк atribuiu %s a matar: %s(ID:%d), por R$ %d."givergiveplayerhitidPlayerInfo[hitid][pHeadValue]);
                        
SendClientMessage(playeridCOLOR_YELLOWstring);
                        
format(stringsizeof(string), "O assassino %s atriubuiu a vocк, matar: %s(ID:%d), por R$ %d."sendernamegiveplayerhitidPlayerInfo[hitid][pHeadValue]);
                        
SendClientMessage(giveplayeridCOLOR_YELLOWstring);
                        
//format(string, sizeof(string), "O assassino %s, atribuiu para o assassino %s para matar: %s(ID:%d), for R$ %d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]);
                        //SendFamilyMessage(8, COLOR_YELLOW, string);
                        
GoChase[giveplayerid] = hitid;
                        
GetChased[hitid] = giveplayerid;
                        
GotHit[hitid] = 1;
                        
hitid 0;
                        
hitfound 0;
                        return 
0;
                    }
                    else
                    {
                        
SendClientMessage(playeridCOLOR_GREY"   A pessoa sob contrato estб Offline !");
                        return 
0;
                    }
                }
                return 
0;
            }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"   Este assassino nгo estб online, atribua a outro !");
                return 
0;
            }
        }
        else if ((
strcmp("cargos"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("cargos")))
        {
            
SendClientMessage(playeridCOLOR_WHITE"|__________________ Hitman & Cargos __________________|");
            for(new 
i=0MAX_PLAYERSi++)
            {
                if(
IsPlayerConnected(i))
                {
                    if(
PlayerInfo[i][pMember] == 8||PlayerInfo[i][pLeader] == 8)
                    {
                        
GetPlayerName(igiveplayersizeof(giveplayer));
                        
format(stringsizeof(string), "%s: cargo %d"giveplayer,PlayerInfo[i][pCargo]);
                        
SendClientMessage(playeridCOLOR_GREYstring);
                    }
                }
            }
        }
        else if ((
strcmp("Logout"tmptruestrlen(tmp)) == 0) && (strlen(tmp) == strlen("Logout")))
        {
            
SendClientMessage(playeridCOLOR_LIGHTBLUE"Vocк desligou seu Laptop, e desconectou da Agкncia.");
              
ConnectedToPC[playerid] = 0;
            return 
0;
        }
        else
        {
            new 
mtext[20];
            
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 Assassinos--|");
            
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);
            return 
0;
        }
        return 
0;
    } 
Reply


Messages In This Thread
Hitman cumpre contrato e server fecha ajuda - by rogerioexper - 23.04.2014, 15:45
Re: Hitmen cumpre contrato e server fecha ajuda - by hard_dalzot - 23.04.2014, 15:51
Re: Hitmen cumpre contrato e server fecha ajuda - by giovanehen - 23.04.2014, 16:04
Re: Hitmen cumpre contrato e server fecha ajuda - by Input - 23.04.2014, 16:14
Re: Hitmen cumpre contrato e server fecha ajuda - by rogerioexper - 23.04.2014, 20:15
Re: Hitmen cumpre contrato e server fecha ajuda - by rogerioexper - 23.04.2014, 20:19

Forum Jump:


Users browsing this thread: 2 Guest(s)