09.01.2012, 00:53
pawn Код:
stock IsPlayerAimingAtFire(playerid, fireid)
{
new Float:x = fireInfo[fireid][fireX];
new Float:y = fireInfo[fireid][fireY];
new Float:z = fireInfo[fireid][fireZ];
if(!IsPlayerInAnyVehicle(playerid))
{
if(IsPlayerAimingAt(playerid, x, y, z-0.75, 1)) return 1;
if(IsPlayerAimingAt(playerid, x, y, z+0.25, 1)) return 1;
}
else
{
if(IsPlayerAimingAt(playerid, x, y, z - 3.0, 1)) return 1;
}
return 0;
}
Код:
^*^ = fire |<<o_o<<| = firetruck Works ^*^ |<<o_o<<| Dont work ^*^ |<<o_o<<|