Ayuda con Fs
#3

pawn Код:
#include <a_samp>
#define pressed(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define released(%0) (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    //--- [FUNCION ---]
    if(pressed(KEY_SUBMISSION)) {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(IsPlayerInVehicle(playerid, vehicleid)) {
            SetVehicleHealth(vehicleid,1000.0);
            RepairVehicle(GetPlayerVehicleID(playerid));
            PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, -1,"Car fixed!");
        }
    }
    //--- [FUNCION ---]
    return true;
}
Reply


Messages In This Thread
Ayuda con Fs - by jezZu - 27.08.2013, 11:52
Respuesta: Ayuda con Fs - by adri1 - 27.08.2013, 12:06
Respuesta: Ayuda con Fs - by OTACON - 27.08.2013, 12:09
Re: Ayuda con Fs - by jezZu - 27.08.2013, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)