Detecting where a Fire Truck is throwing water
#3

You could try this:

pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))
   
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    if(HOLDING(KEY_FIRE) && GetVehicleModel(GetPlayerVehicleID(playerid)) == 407) {
        new
            Float: fAimingCoords[3];
           
        GetPlayerCameraPos(playerid, fAimingCoords[0], fAimingCoords[1], fAimingCoords[2]);
        /* the player is aiming at: fAimingCoords[0], fAimingCoords[1], fAimingCoords[2] */
    }
    return 1;
}
Reply


Messages In This Thread
Detecting where a Fire Truck is throwing water - by o_O - 13.05.2011, 05:01
Re: Detecting where a Fire Truck is throwing water - by park4bmx - 13.05.2011, 06:24
Re: Detecting where a Fire Truck is throwing water - by __ - 13.05.2011, 09:34
Re: Detecting where a Fire Truck is throwing water - by Vince - 13.05.2011, 14:07

Forum Jump:


Users browsing this thread: 2 Guest(s)