[Ajuda] Veiculo trancado
#1

Bom galera to fazendo sistema de concecionaria e qualquer um estб podendo entrar no carro se alguem puder me ajudar agradeзo desde jб!

PHP Code:
for(new 0MAX_CARROSc++)
    {
        
CarroInfo[c][IDCarro] = vehicleid;
        if(
PlayerInfo[playerid][DonoCarroID] != CarroInfo[CarroInfo[vehicleid][IDCarro]][IDCarro] && CarroInfo[CarroInfo[vehicleid][IDCarro]][TravaCarro] == 1)
        {
            new 
Float:XFloat:YFloat:Z;
            
GetPlayerPos(playeridXYZ);
            
SetPlayerPos(playeridXYZ);
            new 
stirng[5000];
            
format(stirngsizeof(stirng),"Esse veнculo pertence б %s",DOF2_GetString(CarroArquivo(GetPlayerVehicleID(playerid)),"DonoCarro"));
            
SendClientMessage(playeridvermelhostirng);
            return 
1;
        }
        return 
1;
    } 
Reply
#2

Tente

PHP Code:
for(new 0MAX_CARROSc++) {
        
CarroInfo[c][IDCarro] = vehicleid;
        if(
PlayerInfo[playerid][DonoCarroID] != CarroInfo[CarroInfo[vehicleid][IDCarro]][IDCarro] && CarroInfo[CarroInfo[vehicleid][IDCarro]][TravaCarro] == 1) {
            new 
str33[128];
            
format(str33sizeof(str33), "Esse veнculo pertence б %s"DOF2_GetString(CarroArquivo(GetPlayerVehicleID(playerid)), "DonoCarro"));
            
SendClientMessage(playeridvermelhostr33);
            
RemovePlayerFromVehicle(playerid); // Remove o(a) jogador(a) do veнculo.
            
return true;
        }
        return 
true;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)