No air veh's at spawn.
#9

if you are using gangzones you can use this stock function to see if the killer in zone with hydra or not
pawn Код:
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
    new Float:X, Float:Y, Float:Z;

    GetPlayerPos(playerid, X, Y, Z);
    if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
        return 1;
    }
    return 0;
}
example
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerInArea(killerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 520)
    {
       //killer in hydra
    }
  return 1;
}
Reply


Messages In This Thread
No air veh's at spawn. - by Snakekeeper - 11.06.2013, 23:41
Re: No air veh's at spawn. - by RALL0 - 11.06.2013, 23:46
Re: No air veh's at spawn. - by Snakekeeper - 11.06.2013, 23:51
Re: No air veh's at spawn. - by RALL0 - 11.06.2013, 23:53
Re: No air veh's at spawn. - by Snakekeeper - 12.06.2013, 00:01
Re: No air veh's at spawn. - by kaisersouse - 12.06.2013, 00:04
Re: No air veh's at spawn. - by Slaykler - 12.06.2013, 00:05
Re: No air veh's at spawn. - by Snakekeeper - 12.06.2013, 00:05
Re: No air veh's at spawn. - by DaTa[X] - 12.06.2013, 00:12
AW: Re: No air veh's at spawn. - by HurtLocker - 12.06.2013, 00:18

Forum Jump:


Users browsing this thread: 2 Guest(s)