Dynamic area problem
#1

When the player dies in the area, he is killed again in spawn point.
How to fix it?
PHP код:
public OnPlayerLeaveDynamicArea(playeridareaid)
{
    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] == && Gang[gangid][gangAttack] && Gang[gangid][gangZoneAttackID] == && IsSpawned[playerid])
            {
                
SetPlayerHealth(playerid,0.0);
            }
        }
    }
    return 
1;

Reply
#2

Yes.
So how to fix it ?
I insert

OnPlayerDeath
Spawn[playerid] = 0

And

OnPlayerSpawn
Spawn[playerid] = 1

But nothing....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)