12.06.2013, 00:12
if you are using gangzones you can use this stock function to see if the killer in zone with hydra or not
example
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;
}
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;
}