Thanks man

sorry i explain bad
so
I have this:
Code:
doPickLocation()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "town", "centerview" );
for(;;)
{
self waittill("town");
self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 15 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self endLocationselection();
self.selectingLocation = undefined;
}
}
doGhost()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "ghost", "+actionslot 1" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("ghost");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self setContents( 0 );
self waittill("ghost");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
self setContents( 100 );
}
}
so when doGhost() is running, with out closing doGhost() i run doPickLocation() and the game screen locked so i cant do any thing
so I want when the doGhost() is active the doPickLocation() not allowed to run ! :|