Duda Al subir a un vehiculo
#5

Quote:
Originally Posted by Zume-Zero
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    switch(newstate)
    {
        case PLAYER_STATE_DRIVER:
        {
            // aquн tu diбlgo.
        }
    }
    return 1;
}
teniйndolo ahн creo que no podrнa, al subirse a un vehнculo en venta le saldrнa el diбlogo y tendrнa que cancelarlo o aceptarlo, tiene que funcionar.
En caso contrario me gustarнa que nos pasaras un poco mбs de informaciуn, sobre como se muestra el diбlogo o detecta si es un vehнculo en venta.
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    new 
string[128], stringj[128];
    if (
newstate == PLAYER_STATE_DRIVER && Concesionaria[GetPlayerVehicleID(playerid)][vEnVenta])
    {
        if (
GetVehicleModel(GetPlayerVehicleID(playerid)) == Concesionaria[GetPlayerVehicleID(playerid)][vModelo])
        {
            
format(stringsizeof(string), "Este vehiculo esta en venta!\n\nVehiculo: "cAmarillo"%s\n"cBlanco"Precio: "cVerde"$%d\n\n"cBlanco"Te gustarнa comprar este vehнculo?"GetVehicleName(GetPlayerVehicleID(playerid)), Concesionaria[GetPlayerVehicleID(playerid)][vPrecio]);
            
ShowPlayerDialog(playerid9DIALOG_STYLE_MSGBOX"Concesionaria"string"Si""No");
            
TogglePlayerControllable(playerid0);
        }
    }
    return 
1;

Reply


Messages In This Thread
Duda Al subir a un vehiculo - by Alvaro89 - 31.07.2014, 23:01
Respuesta: Duda Al subir a un vehiculo - by Zume - 31.07.2014, 23:03
Respuesta: Duda Al subir a un vehiculo - by Alvaro89 - 31.07.2014, 23:30
Respuesta: Duda Al subir a un vehiculo - by Zume - 31.07.2014, 23:37
Respuesta: Duda Al subir a un vehiculo - by Alvaro89 - 31.07.2014, 23:47
Respuesta: Duda Al subir a un vehiculo - by Swedky - 01.08.2014, 01:16
Respuesta: Duda Al subir a un vehiculo - by Alvaro89 - 01.08.2014, 02:35
Respuesta: Duda Al subir a un vehiculo - by Zume - 01.08.2014, 02:36
Respuesta: Duda Al subir a un vehiculo - by Juance - 01.08.2014, 12:09
Respuesta: Duda Al subir a un vehiculo - by Alvaro89 - 01.08.2014, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)