[Problema] IsPlayerInAnyVehicle
#4

pawn Код:
CMD:repararveh(playerid,params[])
{
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ROJO, "No estбs en un vehiculo");
    else
    {
        new Float:health = GetVehicleHealth(GetPlayerVehicleID(playerid), health);
        if(health > 500) return SendClientMessage(playerid, COLOR_ROJO, "El auto no necesita reparaciуn.");
        SetVehicleHealth(GetPlayerVehicleID(playerid), 100.0);
        //RepairVehicle(playerid); // 'playerid'? LoL.
        RepairVehicle(GetPlayerVehicleID(playerid));
        GameTextForPlayer(playerid, "~r~Vehiculo reparado", 5000, 3);
    }
    return 1;
}
Reply


Messages In This Thread
[Problema] IsPlayerInAnyVehicle - by RZoone - 13.01.2014, 21:55
Respuesta: [Problema] IsPlayerInAnyVehicle - by Swedky - 13.01.2014, 21:58
Respuesta: [Problema] IsPlayerInAnyVehicle - by RZoone - 13.01.2014, 22:31
Respuesta: [Problema] IsPlayerInAnyVehicle - by Swedky - 13.01.2014, 22:39
Respuesta: [Problema] IsPlayerInAnyVehicle - by EduGTA - 13.01.2014, 23:05
Respuesta: [Problema] IsPlayerInAnyVehicle - by RZoone - 14.01.2014, 00:34

Forum Jump:


Users browsing this thread: 2 Guest(s)