SA-MP Forums Archive
[AJUDA] Sistema de Caminhoneiros - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Sistema de Caminhoneiros (/showthread.php?tid=333848)



[AJUDA] Sistema de Caminhoneiros - victor_thug - 13.04.2012

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");
    } 



Re: [AJUDA] Sistema de Caminhoneiros - Hiuship - 13.04.2012

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

Coloque aqui a pos de abastecer!


Re: [AJUDA] Sistema de Caminhoneiros - victor_thug - 13.04.2012

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"


Re: [AJUDA] Sistema de Caminhoneiros - L.D.K - 13.04.2012

cara num no isatruk por exemplo naum acho que isso