Zombie not respawning
#1

PHP код:
fp SpawnarZumbi(iddata)
{
    if(
data == 1) return IsDeadNPC{id} = false;
    
    static
        
Float:nxFloat:px,
        
Float:nyFloat:py,
        
Float:nzFloat:pz,
        
bool:lockedproxs ;
    
locked true;
    while(
locked) {
        
GetVectorPath(gSpawnsMRandom(MAX_SPAWNS), nxnynz);
        
proxs 0;
        for (new 
0vector_size(gPlayersOnline) ; i++) {
            
GetPlayerPos(vector_get(gPlayersOnlinei), px,py,pz);
            if(
distance(pxpypznxnynz) <= 150.0) {
                
proxs++;
                break;
            }
        }
        if(!
proxs) {
            
locked false;
            break;
        }
    }
    
npc.SetPos(idnxnynz 1.0);
    
SetTimerEx("SpawnarZumbi"8000false"di"id,1);
    return 
1;

Well, the problem is that the zombie is not respawning, I don't know why, been trying to figure it out for like an hour.
Reply
#2

I need ideas, anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)