ItsMods

Full Version: Combine self and level waittills
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(09-17-2011, 13:28)Lemon Wrote: [ -> ]
(09-17-2011, 13:14)AZUMIKKEL Wrote: [ -> ]
(09-17-2011, 12:14)Lemon Wrote: [ -> ]
(09-17-2011, 12:11)Yamato Wrote: [ -> ]OMA
OMA
OMA

OMA
(09-17-2011, 13:29)Yamato Wrote: [ -> ]
(09-17-2011, 13:28)Lemon Wrote: [ -> ]
(09-17-2011, 13:14)AZUMIKKEL Wrote: [ -> ]
(09-17-2011, 12:14)Lemon Wrote: [ -> ]
(09-17-2011, 12:11)Yamato Wrote: [ -> ]Fuu
Fuu
Fuu

Fuu

Fuu

Fuu
PHP Code:
if(player == P)
        {
            
NemWay destroy();
            return;
        } 
What are you returning? And why
(09-17-2011, 13:35)zxz0O0 Wrote: [ -> ]
PHP Code:
if(player == P)
        {
            
NemWay destroy();
            return;
        } 
What are you returning? And why

Nothing. Just stopping the thread.
PHP Code:
Waypoint(P)    // CREDS TO PUSSUH
{
    
self.NemWay NewClientHudElem(self);
    
self.NemWay.P.origin[0];
    
self.NemWay.P.origin[1];
    
self.NemWay.P.origin[2];
    
self.NemWay setShader("waypoint_kill");
    
self.NemWay setWaypoint(true,"waypoint_kill");
    
self.NemWay setTargetEnt(P);

    
self.stopit=0;
    
self thread zxzbest(P);
    
self thread zxzbest2(P);


zxzbest(P//CREDITS TO ZXZ THE BEST REPZ THENKZ
{
    while(
self.stopit==0)
    {
        
self waittill_any("death""disconnect"); 
        
        if(
self.stopit==0//I removed player==P here
        
{
            
self.NemWay destroy();
            
self.stopit=1;
        }
    }
}

zxzbest2(P)
{
      while(
self.stopit==0)
      {
            
level waittill("SECRET_ANNOUNCEMENT"player); 

            if(
player==&& self.stopit==0)
            {
                
self.NemWay destroy();
                
self.stopit=1;
             }
       }

Maybe

You should give more infos. By who is Waypoint(P) called?
(09-16-2011, 20:53)AZUMIKKEL Wrote: [ -> ]Nvm figured out something. Thanks.

(09-17-2011, 13:52)Lemon Wrote: [ -> ]
(09-16-2011, 20:53)AZUMIKKEL Wrote: [ -> ]Nvm figured out something. Thanks.

Nice gifs
(09-17-2011, 13:58)zxz0O0 Wrote: [ -> ]
(09-17-2011, 13:52)Lemon Wrote: [ -> ]
(09-16-2011, 20:53)AZUMIKKEL Wrote: [ -> ]Nvm figured out something. Thanks.

Nice gifs

Hehe. Thanks. Wink
Stop spamming and post the solution but it seems that zxz already posted a feasible fix.
(09-17-2011, 14:07)master131 Wrote: [ -> ]Stop spamming and post the solution but it seems that zxz already posted a feasible fix.

I fixed it a couple posts before that. I decided to do the whole thing a whole other way.
Pages: 1 2