[AJUDA] Sistema de Caminhoneiros
#1

bem galerinha, nao eh coisa dificil, eh apenas as saidas dos nomes que estгo nos cantos errados, mas nao sei onde eh o canto certo para por. (sei q o canto de pegar gasolina esta no canto errado).
PHP Code:
if (strcmp("/PegarGasolina"cmdtexttrue10) == 0)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
        {
            if(
PlayerInfo[playerid][pEmprego] == 16)
            {
                if(
PlayerToPoint(5.0,playerid,0,0,0))
                {
                    if(
PetrolJob2[playerid] == 0){
                        
PetrolJob2[playerid] = 1;
                        return 
1;
                    }
                    return 
1;
                }
                
SendClientMessage(playeridORANGE,"Voce encheu o tanque, agora jб pode entregar a carga.");
            }
            
SendClientMessage(playeridORANGE,"Vocк Tem Que Estar na Empresa de Petroleo para encher o tanque com gasolina.");
        }
    }
    if (
strcmp("/EntregarGasolina"cmdtexttrue10) == 0)
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 403)
        {
            if(
PlayerInfo[playerid][pEmprego] == 16)
            {
                if(
PetrolJob2[playerid] >= 1){
                    if(!
IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))){ SendClientMessage(playerid,COLOR_RED,"* Voce nao esta com o Tanque!"); return 1; }
                    if(
PetrolJob[playerid] != && PetrolJob[playerid] != && PetrolJob[playerid] != 3){ PetrolJob[playerid] = 1; }
                    
GetPlayerName(playeridsendernamesizeof(sendername));
                    
format(stringsizeof(string), "*O Caminhoneiro %s esta fazendo uma entrega."sendername );
                    
SendClientMessageToAll(COLOR_YELLOWstring);
                    if(
PetrolJob[playerid] == 1){
                        
PetrolJob[playerid] = 2;
                        
PetrolJob2[playerid] = 0;
                        
SetPlayerCheckpoint(playerid,1944.7424,-1771.1267,13.1157,10);
                        return 
1;
                    }
                    if(
PetrolJob[playerid] == 2){
                        
PetrolJob[playerid] = 3;
                        
PetrolJob2[playerid] = 0;
                        
SetPlayerCheckpoint(playerid,1003.4263,-941.8485,41.8079,10);
                        return 
1;
                    }
                    if(
PetrolJob[playerid] == 3){
                        
PetrolJob[playerid] = 1;
                        
PetrolJob2[playerid] = 0;
                        
SetPlayerCheckpoint(playerid,-97.8173,-1166.7585,2.2650,10);
                        return 
1;
                    }
                    return 
1;
                }
            }
            
SendClientMessage(playeridORANGE,"Vocк nгo tem gasolina no tanque, vб pegar na empresa de petrуleo (/GPS)");
        }
        
SendClientMessage(playeridORANGE,"Vocк nao esta no caminhгo ou nao eh caminhoneiro");
    } 
Reply
#2

if(PlayerToPoint(5.0,playerid,0,0,0))

Coloque aqui a pos de abastecer!
Reply
#3

eu sei, eh apenas onde eu coloco os SendClientMessage. pq mesmo sendo caminonheiro e estando no camionhao, aparece "Vocк nao esta no caminhгo ou nao eh caminhoneiro"
Reply
#4

cara num no isatruk por exemplo naum acho que isso
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)