03.08.2018, 12:35
When the player dies in the area, he is killed again in spawn point.
How to fix it?
How to fix it?
PHP код:
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(Spawn[playerid] == 0) return 1;
new gangid = PlayerGang[playerid][gang_id];
if(gangid != -1)
{
for(new i=0;i<MAX_GANG_ZONE;i++)
{
if(areaid == GZone[i][gArea] && GZone[i][gzoneStatus] == 2 && Gang[gangid][gangAttack] && Gang[gangid][gangZoneAttackID] == i && IsSpawned[playerid])
{
SetPlayerHealth(playerid,0.0);
}
}
}
return 1;
}