09-17-2011, 13:29
Pages: 1 2
09-17-2011, 13:29
09-17-2011, 13:29
09-17-2011, 13:35
PHP Code:
if(player == P)
{
NemWay destroy();
return;
}
09-17-2011, 13:35
(09-17-2011, 13:35)zxz0O0 Wrote: [ -> ]What are you returning? And whyPHP Code:if(player == P)
{
NemWay destroy();
return;
}
Nothing. Just stopping the thread.
09-17-2011, 13:50
PHP Code:
Waypoint(P) // CREDS TO PUSSUH
{
self.NemWay = NewClientHudElem(self);
self.NemWay.x = P.origin[0];
self.NemWay.y = P.origin[1];
self.NemWay.z = 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==P && self.stopit==0)
{
self.NemWay destroy();
self.stopit=1;
}
}
}
You should give more infos. By who is Waypoint(P) called?
09-17-2011, 13:58
09-17-2011, 14:04
09-17-2011, 14:07
Stop spamming and post the solution but it seems that zxz already posted a feasible fix.
09-17-2011, 17:37
(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